mytodo grunt
zsh: command not found: grunt
➜ mytodo npm instal -g grunt
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires semver@'2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
npm WARN unmet dependency which is version 4.3.6
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npmconf requires uid-number@'0.0.5' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/uid-number,
npm WARN unmet dependency which is version 0.0.6
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires github-url-from-username-repo@'^0.2.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/github-url-from-username-repo,
npm WARN unmet dependency which is version 1.0.2
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires semver@'2 || 3' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
npm WARN unmet dependency which is version 4.3.6
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build requires colors@'0.6.x' but will load
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
"~/.zshrc" 81L, 2537C
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/node_modules/multiparty/node_modules/stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/connect/node_modules/multiparty/node_modules/readable-stream,
npm WARN unmet dependency which is version 1.1.13-1
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/phonegap-build/node_modules/qrcode-terminal requires colors@'*' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/prompt/node_modules/winston requires colors@'0.x.x' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/phonegap/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
[email protected] /usr/local/lib/node_modules/grunt
├── [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], [email protected] )
├── [email protected] ([email protected], [email protected] )
├── [email protected] ([email protected], [email protected] )
└── [email protected] ([email protected], [email protected], [email protected] )
➜ mytodo grunt
zsh: command not found: grunt
1
nuc093 OP ➜ mytodo which npm
/usr/local/bin/npm ➜ mytodo vi ~/.zshrc export PATH=/usr/local/bin/npm:$PATH ➜ mytodo source ~/.zshrc ➜ mytodo grunt serve zsh: command not found: grunt |
2
nuc093 OP OK 解决了。
sudo npm install -g yo bower grunt-cli gulp |
3
aisk 2015-09-09 12:48:09 +08:00
npm instal -g grunt-cli
|
4
FrankFang128 2015-09-09 13:00:37 +08:00 via Android
快换 gulp
grunt cli 坑了一批人 |