Are your npm dependencies installed? If not, you should either run the npm install command in the project folder manually or avoid this in the future, you can automatically install npm packages in your project during assembly by editing your .njsproj file after the line
<Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsTools.targets" />
add the following section:
<PropertyGroup> <PreBuildEvent> npm install --msvs_version=2015 </PreBuildEvent> </PropertyGroup>
Or, if you only want to restore it, then:
<PropertyGroup> <BeforeRebuildEvent> npm install --msvs_version=2015 </BeforeRebuildEvent> </PropertyGroup>
The command line --msvs_version=2015 is optional, but if you are using multiple versions of VS or your npm is not configured correctly, then this may be useful.
ther
source share