Posts

Es werden Posts vom Mai, 2017 angezeigt.

Configuring Visual Studio 2015 to use latest NPM

Bild
Many recent web technology packages (like Angular) are not available on nuget and have to be retrieved via Node's NPM.  Visual Studio 2015 Update 3 uses a deprecated version of NPM, so here's a few easy steps to get the latest version up and running. 1: Download and install NodeJS 2: Configure Visual Studio to use NodeJS Open the extras/options/projects and solutions/external web tools window Add a location by clicking on the leftmost button in the top right corner. This will result in a new line. You will want to make this contain  C:\Program Files (x86)\nodejs\  or wherever  you installed NodeJS in step 1. Move this item to the top of the list so that VS primarily uses this location for NPM rather than its own installation. 3: Check Create a new web solution (whatever floats your boat) and create a file named package.json at root level. The following text describes requirements for Angular development and can be used as a sample.  {