-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Serverless + NodeJS v8.0 = error on sls deploy #3723
Comments
Thanks for reporting @Tazer 👍 Seems like the We should update this dependency as soon as an update is available. |
Same here, looks like i'll need to roll back to 6.10.3 for now. I need to get bash on ubuntu on windows 👍 installed so i can just nvm between projects . Love serverless, keep up the good work. :-) Update: rollback to 6.10.3 works |
Same problem. Quick fix for Mac users using Homebrew: brew install node@6 |
Or, for homebrew, if you had a version 7 installed:
|
or using |
Looks like this was fixed with |
Thanks for confirming @ryanmurakami 👍 Closing since Feel free to comment if this issue still persists. |
Version 8 is a bit buggy: serverless/serverless#3723
Not super familiar with GitHub comments, sorry if this opens this issue again, but here's the suuuper quick fix: |
Which providers support node 8 anyway? Seems like AWS Lambda and GCF don't support it (yet)? |
Yes, that's correct. AWS and GCF use Node 4 / 6:
However I personally always use the latest Node version locally when working on the Framework. |
@pmuens but then locally a function might work (eg due to using certain es6 features that are not supposed in node 6), while a deployed function would not. Out of curiosity, are you aware of providers that do support node 8? |
Yes, sure. I mean that I use it as my main version when writing code for the Framework. But yes, when writing functions for Lambda or GCF it's always recommended to use the runtime of the FaaS provider! My assumption would be that they'd add support for it as soon as it gets LTS status (which should be next month --> https://github.com/nodejs/LTS#release-schedule1). |
@pmuens As long as they still support the old versions, imo the framework needs to support these too. E.g. we still have some Node 4 projects around, that are tested locally with a Node 4 runtime (serverless invoke local). Until we upgrade them, we'll still have some use cases that use the old version to start the framework. With an upcoming Node 8 LTS support it would be the same. Only in case the providers remove support for old versions, the support should be dropped from the framework too. |
Yes, the goal is to support all the different runtime versions the providers offer 👍 |
$node -v working for me thanks guyz How I update node : |
This is a Bug Report
Description
For bug reports:
when running
sls deploy
when you have nodejs v8.0you will get an error on package. You can see the error below.
The deploy successfully completed
I used the sample nodejs project.
Additional Data
1.14.0
Mac OS X
TypeError: Cannot read property 'pipesCount' of undefined
The text was updated successfully, but these errors were encountered: