I created a new ASP.NET V5 web project, and added a NPM configuration (package.json
) file:
{
"version": "1.0.0",
"name": "ASP.NET",
"private": true,
"devDependencies": {
"bower": "1.4.1"
}
}
Then I added a bower.json file:
{
"name": "ASP.NET",
"private": true,
"dependencies": {
"bootstrap": "*"
}
}
I get the following error showing up:
This happens when I create an empty ASP.NET v5 project. When I create an MVC project, it works fine. I've managed to get the empty project to work when I add in all the client-side related items from the MVC project (e.g. gulpfile.js) so it must have been missing something it needed.
I had a similar problem and in my case the solution was:
.\node_modules\.bin
$(VSINSTALLDIR)\Web\External
$(VSINSTALLDIR)\Web\External\git
Works fine under Visual Studio 2015 Community, however please bear in mind that I do have separately installed and configured both nodejs and git and I don't use any of VS built-in tools.
UPDATE
In Visual Studio 2017 Community the path is:
Tools -> Options -> Project and Solutions -> Web Package Management -> External Web Tools
Something I did and it worked perfectly was:
I needed to uninstall the bower
component from inside the NPM
folder.
I had installed it earlier, then removed it from the package.json
file, but it was still in the NPM
folder. Once removed, it worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With