search

Home  >  Q&A  >  body text

git cannot call module downloaded globally from npm

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?

世界只因有你世界只因有你2790 days ago790

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • Cancelreply