npm install -G gulp 为什么会安装在项目目录下?
发布于 4个月前 作者 yakczh 1105 次浏览 来自 问答

d:\upupw\htdocs>gulp [09:41:28] Local gulp not found in d:\upupw\htdocs [09:41:28] Try running: npm install gulp

d:\upupw\htdocs>npm install -G gulp

[email protected] install d:\upupw\htdocs\node_modules\g node fetch.js

flags for v8 3.14.5.9 cached. [email protected] node_modules\gulp ├── interpret@0.3.7 ├── pretty-hrtime@0.2.2 ├── deprecated@0.0.1 ├── archy@0.0.2 ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── chalk@0.5.1 ([email protected], ansi-s ├── orchestrator@0.3.7 (stream-consume@0.1.0, seque ├── liftoff@0.13.5 ([email protected], flagged-respawn@0 ├── vinyl-fs@0.3.10 ([email protected], mkdirp@0.5. └── [email protected] ([email protected], d

d:\upupw\htdocs>dir node_modules 驱动器 D 中的卷是 sbin 卷的序列号是 A85E-3C38

d:\upupw\htdocs\node_modules 的目录

2014/11/01 09:42 <DIR> . 2014/11/01 09:42 <DIR> … 2014/11/01 09:42 <DIR> .bin 2014/11/01 09:42 <DIR> gulp 0 个文件 0 字节 4 个目录 81,285,898,240 可用字节

1 回复

猜测 windows下 npm 参数区分大小写? 你试试npm install -g gulp

回到顶部