无法在Windows 8上安装Yeoman - npm ERR! peerinvalid包yo不满足其兄弟姐妹' peerDependencies

时间:2014-09-02 07:39:04

标签: npm yeoman

我正在努力安装Yeoman。一般来说,Node和命令行都是新手,所以不确定从哪里开始。我搜索了类似的问题,并尝试了类似的东西 npm cache clear我已经尝试删除其他一些类似grunt的软件包,但我可能会干扰它,但没有运气。

当我运行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

1 个答案:

答案 0 :(得分:0)

您是否尝试使用管理员权限打开控制台?