Closed embee8 closed 7 years ago
VS 2015 ships with its own versions of Node and npm. Consequently, you'll want to tell VS to use the versions set on your system/user PATH
environment variable. To do this, go to Tools --> Options --> Projects and Solutions --> External Web Tools, and move the $(PATH)
entry to the 2nd position in the list. You should have something that looks like this:
Beautiful! I changed the order and the scripts now run again. Thank you for your swift reply, @scottaddie!
Great answer! Solved this issue for me too.
Installed product versions
Description
I upgraded to Webpack 2 today and now the Webpack build throws an error when started through the NPM Task Runner.
Steps to recreate
Run either of the two defined scripts below through the NPM Task Runner for the following project structure / package versions.
Current behavior
This is the output I currently get:
If I start Webpack in a normal console window outside of the task runner it works fine. It looks like VS or this extension is using a different npm version?
Expected behavior
I am not sure whether this extension brings in its own external version of NPM or not. I would appreciate your insights.