我正在尝试设置我们公司使用的CMS。我在我的Mac上设置这个。我们仍然倾向于在“金属”上运行东西,而不是在VM或Vagrant或其他任何东西中运行。我们有一个很大的Make文件,它应该为我们做这项工作,"make install“可以工作,但"make run”应该设置一些额外的东西,最终它会失败,并显示以下错误:
> 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)但是后来我试着运行"make run“,我得到了和以前一样的错误。所以我试着:
npm uninstall -g karma-mocha因为我以为我可以重新开始,但我得到了:
npm WARN uninstall not installed in /Users/cerhovice/projects/eaneighborhood/repos/nixd/usr/lib/node_modules: "karma-mocha"我尝试了同样的“摩卡”。
似乎没有什么能解决这个问题。有什么建议吗?
发布于 2014-11-29 10:43:51
您运行的是哪种类型的操作系统?我不确定我是否听说过Linux/UNIX环境中的"make run“命令。下面是我在make命令1中使用的引用
https://stackoverflow.com/questions/27198236
复制相似问题