我正在尝试设置我公司使用的CMS。我正在我的Mac上设置它。我们仍倾向于在金属上运行东西"而不是在VM或Vagrant或其他任何东西。我们有一个很大的Make文件,假设为我们做了工作,并且" make install"工作,然后"运行"假设设置了一些额外的东西,最终它会因为这个错误而爆炸:
> ws@0.4.32 install /Users/cerhovice/projects/eaneighborhood/repos/angels/src/javascript/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! Darwin 11.4.2
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm v2.1.10
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package mocha does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma-mocha@0.1.9 wants mocha@*
npm ERR! peerinvalid Peer mocha-as-promised@2.0.0 wants mocha@>= 1.8.0 <2
npm ERR! Please include the following file with any support request:
npm ERR! /Users/cerhovice/projects/eaneighborhood/repos/angels/src/javascript/npm-debug.log
所以我试过了:
npm install mocha@1.9
我看到了:
mocha@1.9.0 node_modules/mocha
├── growl@1.7.0
├── commander@0.6.1
├── diff@1.0.2
├── mkdirp@0.3.3
├── debug@2.1.0 (ms@0.6.2)
├── ms@0.3.0
└── jade@0.26.3 (mkdirp@0.3.0)
然后我试着跑#34; make run&#34;我得到了与以前完全相同的错误。所以我试过了:
npm uninstall -g karma-mocha
因为我以为我可以重新开始,但我得到了:
npm WARN uninstall not installed in /Users/cerhovice/projects/eaneighborhood/repos/nixd/usr/lib/node_modules: "karma-mocha"
我用&#34; mocha&#34;尝试了同样的事情。
似乎没有什么能解决这个问题。有什么建议?