Friday, December 25, 2015

Update NPM for Visual Studio 2015

Below are the steps to update NPM for Visual Studio:
  • Download latest Node package (which includes NPM) from the below link

o   In the above link click on the latest version (currently it is latest-v5.x)
o   From the latest version download the latest 64 bit (node-v5.3.0-x64.msi) or 32 bit msi(node-v5.3.0-x86.msi)
  • Run the msi to install the Node & NPM
  • Once Node and NPM is installed, open the VS2015 Developer Command Prompt
  • Type npm to find the path where npm is installed

  • As you can see npm location on my laptop. We need to specify this path in Visual Studio
  • Open Visual Studio and go to Tools > Options > Projects and Solutions > External Web Tools
  • Add the path of npm in Visual Studio (remove the last part of the path "node_modules/npm"
  • With the above steps your npm is updated in the global path and the correct path is set in Visual Studio.
In future if you want to update npm you just need run the below command

npm install npm stable -g

No comments:

Post a Comment