Chaklader
Chaklader

Reputation: 169

Can't create project via angular-cli in windows

While I was trying to install angular-cli using the command

npm install -g angular-cli 

I get the following error,

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]
npm ERR! peerinvalid Peer @angular/[email protected] wants @angular/[email protected]

npm ERR! Please include the following file with any support request:
npm ERR!     C:\WINDOWS\system32\npm-debug.log

What should I do to resolve the issue ?

Upvotes: 0

Views: 151

Answers (1)

BeetleJuice
BeetleJuice

Reputation: 40896

Looks like a problem with dependency resolution. Some dependencies that recent versions of Node can handle will cause errors on older versions.

  1. Download and install the latest NodeJS version (6.8.1),
  2. Run npm install... again.
  3. Run npm rebuild

Upvotes: 1

Related Questions