[英]Can't install Yeoman on Windows 8 - npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies
I'm struggling to install Yeoman. 我正在努力安装Yeoman。 Fairly new to Node and the command line in general so not really sure where to start.
一般来讲,Node和命令行还算是新手,所以不确定从哪里开始。 I searched for similar problems and tried things like
npm cache clear
and I've tried removing some other packages like grunt which I though might be interfering, but no luck. 我搜索了类似的问题,并尝试了诸如
npm cache clear
类的事情,并尝试删除了一些其他软件包,例如grunt,尽管我可能会干扰它们,但没有运气。
When I run npm install -g yo
it seems to be OK but then it ends with this error message: 当我运行
npm install -g yo
这似乎没问题,但它以以下错误消息结尾:
...
npm http 304 https://registry.npmjs.org/minimist/0.0.8
C:\c\Users\Matt\.node\yo -> C:\c\Users\Matt\.node\node_modules\yo\cli.js
> yo@1.1.2 postinstall C:\c\Users\Matt\.node\node_modules\yo
> node ./scripts/doctor
[Yeoman Doctor] Everything looks alright!
npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-mocha@0.1.5 wants yo@>=1.0.0
npm ERR! peerinvalid Peer generator-webapp@0.5.0 wants yo@>=1.2.0
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! cwd C:\Users\Matt
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Matt\npm-debug.log
npm ERR! not ok code 0
Matt@ACER_V3_571 ~
$ yo
sh.exe": yo: command not found
您是否尝试过以管理员权限打开控制台?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.