我最近重新安装了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