I was playing with Angular CLI and I love it. Superb tool that save me a lot of time specially with all those new features of Angular 2. The only problem I had was with Node. According to docs, Angular CLI requieres Node 4 or greater, but if you are using Node 4.x and start a new project, it will fail with cryptic error messages in the browser console log.
After many hours of frustration, I realize that Angular 2 requires Node 5.x or higher:
Verify that you are running at least node v5.x.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors.
By doing some research in Stack Overflow, seems that many other have faced the same problem. Look, for example, the comments in this blogpost. So, I'd like to recommend update your Prerequisites Docs to node v5.x.x and npm 3.x.x or higher in order to save hours of frustration to new people who wants to try Angular 2.
Thanks.
EDIT Jun 16
I agree with @BernhardRode and @kylecordes, Angular CLI should focus on Node 6. Please, upgrade your Prerequisites Docs to node v6.x.x and npm 3.x.x or higher, it's just a minute and will avoid lot of bug reports.
I'd say focus on 6, as it is going to be the next LTS. So when the CLI comes to live, we will have a solid basement.
I think the comment about version 6 is right on. There are already so many ways for CLI to explode in scope. Anywhere we can limit the scope (like chopping out old node versions) will help the team focus on making it actually work great for current versions.
Related: #1110 #1097
We're now also testing on Node 6 with https://github.com/angular/angular-cli/commit/ce8d0209ccd603bd90f8fd9e4eb27d7d3a7e1d23, but for now will not enforce using node 6.
README.md still says:
The generated project has dependencies that require Node 4.x.x and NPM 3.x.x.
Also, I would link users to NVM as a solution for switching between Node versions.
Something like:
"If your projects require different Node versions, you may want to use Node Version Manager"
NPM Version: 6.7.0
Node Version: v11.10.1
When I execute command npm install -g @angular/cli
Installation gets stuck during execution . Stucked on [email protected]
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I'd say focus on 6, as it is going to be the next LTS. So when the CLI comes to live, we will have a solid basement.