win7下无法安装yeoman


在win7系统下(64位),安装yeoman出现状况。grunt和bower都安装成功。

C:\Users\Administrator>npm install -g yo

[email protected] postinstall C:\Users\Administrator\AppData\Roaming\npm\node_
modules\yo\node_modules\cross-spawn\node_modules\spawn-sync
node postinstall

C:\Users\Administrator\AppData\Roaming\npm\yo -> C:\Users\Administrator\AppData\
Roaming\npm\node_modules\yo\lib\cli.js

[email protected] postinstall C:\Users\Administrator\AppData\Roaming\npm\node_modules\y
o
yodoctor

Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version

Everything looks all right!
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\yeoman requires bower@'~0.3.0' but will load
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\bower,
npm WARN unmet dependency which is version 1.4.1
[email protected] C:\Users\Administrator\AppData\Roaming\npm\node_modules\yo
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ( [email protected] )
├── [email protected]
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] , ansi-style
[email protected] , [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] )
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] , [email protected] , [email protected] , cam
[email protected] )
├── [email protected] ( [email protected] , [email protected] , [email protected] , strip-
[email protected] , [email protected] , [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] , [email protected] .
2, [email protected] , [email protected] , [email protected] , [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] , semver-diff@2.
0.0)
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] , [email protected] , [email protected] , is-red
[email protected] , [email protected] , [email protected] , [email protected] ,
[email protected] , [email protected] , [email protected] , [email protected] )
├── [email protected] ( [email protected] )
├── [email protected] ( [email protected] , [email protected] )
├── [email protected] ( [email protected] , [email protected] ,
[email protected] , [email protected] , [email protected] , [email protected] , [email protected] , globby
@2.1.0, [email protected] )
├── [email protected] ( [email protected] , [email protected] , [email protected] , o
[email protected] , [email protected] , [email protected] )
├── [email protected]
├── [email protected] ( [email protected] , [email protected] , [email protected] , readlin
[email protected] , [email protected] )
└── [email protected] ( [email protected] , [email protected] , each-async@1
.1.1, [email protected] , [email protected] , [email protected] )

C:\Users\Administrator>yo -v
? 'Allo! What would you like to do?
Run a generator
Bower
──────────────
Update your generators
Install a generator

Find some help
Get me out of here!
──────────────

npm yeoman

米米羊的翅膀 9 years, 4 months ago

为啥我感觉你已经安装好了。。。
接下来安装一下相应的生成器就可以生成目录结构了


 npm install -g generator-webapp
npm install -g generator-angular

三联装炎爆术 answered 9 years, 4 months ago

Your Answer