无法通过angular-cli创建项目

时间:2016-10-15 02:08:15

标签: angular npm

我使用命令ng new projectName然后,当我得到消息installing packages via npm时,它会永远挂起。我使用了npm cache clean命令,但没有解决问题。

Update:

我等了足够长的时间并从终端获取错误消息:

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.6.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package @angular/compiler@2.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/compiler-cli@0.6.4 wants @angular/compiler@2.0.2
npm ERR! peerinvalid Peer @angular/platform-server@2.1.0 wants @angular/compiler@2.1.0

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Chaklader/Documents/Online Education/Egghead/AngularJS/Getting Started/myProject/npm-debug.log

我将Mac OS用于项目

0 个答案:

没有答案