-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Every cli command fail after brand new installation #4072
Comments
Try upgrading to node 6. We don't support node 4 (in practice I guess) any more. |
Or better, node 8 |
6 should be fine, it's the first LTS that supports object spread. Also, you can get the Gatsby version with |
Sorry for my newbieness I just assumed the default apt get node is fine.
Thanks
|
It depends on the distribution, unfortunately Debian and Ubuntu based distributions tend to have fairly out of date packages. You can use |
Yes @nickmccurdy I haven't looked on Debian (what I'm using now) but I know the I use I made a guide as I was always starting from scratch on WSL due to either |
Closing as I think this is resolved. |
Got this error using Node.js v7.6.0 on Windows 10. Disappeared after I went to v10.16.3 LTS. So first Gatsby experience was an obscure SyntaxError. Maybe some initial health check could be added including friendlier messages? |
Description
npm install --global gatsby-cli
Environment
Gatsby version: Unable to tell since I can't run any gatsby command
Node.js version: v4.2.6
Operating System: Ubuntu 16.04 Desktop
Actual result
Expected behavior
Based on docs, I expected to exit fine and display something on my local port 8000?
Steps to reproduce
1. npm install --global gatsby-cli
2. gatsby new or gatsby new gatsby-site
3.
...
The text was updated successfully, but these errors were encountered: