How to disable "npm install" in VS2015

In VS2015, opening a web project / solution using node packages (for example, gulpfile.js) will cause VS to automatically run "npm install" and install all the packages. VS2015 comes with the old version of npm (1.4.19), which does not perform a “flat” installation of package dependencies, which forces you to create paths that contain more than 260 characters. It really hurts when it happens every time Visual Studio opens. I found some workarounds (including http://jameschambers.com/2015/09/upgrading-npm-in-visual-studio-2015/ ), but ideally there would be a setting somewhere to turn off "auto npm install "or something like that I just either can’t find the setting, or it doesn’t exist.

+5
source share
1 answer

You can literally “hide” all web tools from Visual Studio:

  • From the Tools menu, select "Options ..."
  • Go to Projects and Solutions → External Web Tools
  • If you want Visual Studio to use globally installed npm - just uncheck all the elements starting with $ (DevEnvDir).
  • If you want to completely disable all web tools in VS: uncheck all.
+1
source

Source: https://habr.com/ru/post/1239932/


All Articles