Tijo Titus
Tijo Titus

Reputation: 143

Can't create new Angular project

Installed the Angular CLI using this command
npm install -g @angular/cli
But when creating new project using command
ng new PROJECT-NAME
it shows

You are running version v8.0.0 of Node.js, which is not supported by Angular CLI v6. The official Node.js version that is supported is 8.9 and greater. Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.

But actually i am using nodejs v9.11.1 See screenshot of my cli

Upvotes: 1

Views: 1688

Answers (1)

PhrogEC
PhrogEC

Reputation: 11

Mostly sounds like a version problem. The new angular cli version requires the latest version of node.

All you need to do is update node and npm to latest version , everything should work fine.

If you are working on windows I'd suggest just going on their site and getting the latest one(currently at the time of this post is 8.11.2). For linux based and mac I would suggest looking for a guide how to get latest version since installing from terminal with something like (apt-get install or yum) will not have latest version you need (can easily be changed with some simple commands)

Also do check the version of node with: node -v

There has also been a naming conflict on linux regarding node vs nodejs see this question.

Upvotes: 1

Related Questions