-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6MB AWS Lambda Hard Limit Strikes Again #50
Comments
BTW, I also ran into this issue... wasted a few hours trying to figure out what went wrong. To bad we can't send an S3 signed PUT URL down to the client. Perhaps if we started a conversation with the |
Yer @brimworks we really are shackled by the way npm and Lambda works just now. I spoke to Amazon and they said, they can not do anything for me in regards to these hard limits. I have some things in the pipeline just now that will probably make the whole js community go crazy with a codebox package manager that uses streams against a codebox private registry. One thing I am aiming to achieve also is that each module is it's own ".json" file so that when we work with Docker it can cache every layer and only have to invalidate those dependencies that have a version change. Watch this space 👍 |
I think it would be worth mentioning this issue in the README. It may also be worth mentioning that one strategy for escaping the 6MB limit is to configure npm config set @myscope:registry https://xyz.amazonaws.com/stage/registry/ "publishConfig": {
"@myscope:registry": "https://xyz.amazonaws.com/stage/registry/"
}, |
I’m having trouble parsing this issue and what it means for my decision to deploy Codebox-npm for my organization. Does the 6mb limit mean that packages published or used via npm install cannot be over 6mb? I think this is why you described an error when attempting to install npm. I think this is also why @joebowbeer solution works for publishing/using npm modules from the public registry. But it still would not work if the scoped private modules go over 6mb in size, correct? Thanks for the clarification and great work |
@micksabox AWS Lambda limits response body payload (e.g., your npm package) to 6MB |
I was able to bypass this, specifically for the package 'npm', by forking the code and changing the response of the package-get be a redirect, instead of directly fetching its meta, when fetching NPM packages. |
This is a Bug Report
Description
For bug reports:
When attempting to use
npm i npm --save
failed.It actually came about attempting to install
cordova
as npm is a dependency of it.What did you expect should have happened?
npm
module should have installedWhat stacktrace or error message did you
experience?
Similar or dependent issues:
Additional Data
3.10.16
1.6.1
v6.2.0
The text was updated successfully, but these errors were encountered: