Can NOT install bower package from Visual Studio / Core 2
See original GitHub issueHello, I’m a newbie… I was trying to install Bootstrap bower package on Visual Studio 2017 but I get an ugly error as follow:
bower bootstrap#v4.0.0-beta.2 EMALFORMED Failed to read C:\Users\ADMINI~1\AppData\Local\Temp\1\WIN-DPN1LB7550E-Administrator\bower\ca4c50b905dc21ea17a10549a6f5944f-5952-MJCiLU\bower.json Additional error details: Unexpected token @
This is what I did to test:
-
I tried to install other packages than bootstrap, for example JQuery and it did complete with no problems.
-
I did start a complete full empty app, just in case something was generating the error and tried to install the package, same result.
I tried to check what was inside bower.json file but it seems something the package create temporarily in the route above and before I can do anything, it display a msg with the error on VS and delete all the files, including bower.json
I have VS community edition and inside I have a file called bower.json also which contains:
{ "name": "asp.net", "private": true, "dependencies": { } }
and other file called .bowerrc which contains: { "directory": "wwwroot/lib" }
I can just point to the external CSS and JS but I would like to understand why I cant install this bower package into my project in VS
PLEASE and THANK YOU for your help. 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:37 (10 by maintainers)
I don’t think it’s the responsibility of the Bootstrap project to teach people how to use NPM. There’s plenty of documentation online if you look for it.
If you’re having trouble with the Visual Studio NPM integration, I would submit a ticket to them.
Or maybe now is a good time to start learning the command line, so you are not bound to an IDE and the way they do things.
better yet, let’s get rid of the package managers, and just copy-paste the code into our projects.