我最近重新安裝了AngularCLI到最新版本,但是當我使用ng n MyNewProject
時,我在終端Cannot find module 'portfinder'
中收到以下錯誤消息,現在我已經使用了這個和許多解決方案陳述了這樣做:找不到模塊portfinder - 最新的AngularCLI
npm uninstall -g angular-cli
npm cache clean
npm install -g [email protected]
現在我已經做到這一點,但仍然有同樣的問題,Cannot find module 'portfinder'
任何可以建議還有什麼嘗試?
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants [email protected]*
npm ERR! peerinvalid Peer [email protected] wants [email protected]^1.1.0 || ^2 || ^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants [email protected]^1.12.6 || ^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants [email protected] || 2 || ^2.0.0-beta || ^2.1.0-beta
npm ERR! peerinvalid Peer [email protected] wants [email protected]^2.1.0-beta