As shown in the figure, the module installed globally by npm is placed in the path user/[帐号名]/AppData/Roaming/npm/node_modules
,
Git can find the module from the path in the picture, so it cannot be found.
The question is how to make git correctly find the modules installed globally by npm?
伊谢尔伦2017-05-02 09:53:56
If you want to check whether the global installation is successful, you can use gulp -v
,
如果要在项目中使用gulp,需要在项目目录下运行 npm install gulp
,
查看相关目录用 cd [路径名]
,
比如你在 Desktopgulp文件下使用gulp的话,就在这个文件夹下运行npm install gulp