question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can NOT install bower package from Visual Studio / Core 2

See original GitHub issue

Hello, 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:

  1. I tried to install other packages than bootstrap, for example JQuery and it did complete with no problems.

  2. 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:closed
  • Created 6 years ago
  • Comments:37 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
browner12commented, Oct 20, 2017

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.

4reactions
browner12commented, Nov 7, 2017

better yet, let’s get rid of the package managers, and just copy-paste the code into our projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[WFR] Bower package manager wont install packages
1) Create new asp.net core webapi project. 2) Right click project and Manage Bower Packages 3) Choose Jquery 4) Make sure the "update...
Read more >
Can´t install jQuery (or other Bower packages) in Visual ...
I am working with .Net Core 2 and whenever I try to install a Bower package, I get a generic error message. Am...
Read more >
How to install "bower" Devextreme in asp.net core?
Hello Guide! I have problem about 'bower.json' not install when I create new project devextreme .net core in VS2017 v15.7.4,Please help.
Read more >
Manage Client-Side Packages with Bower
Visual Studio developers are already familiar with NuGet, so why not use ... Bower packages can be installed either via the Manage Bower...
Read more >
Bower — a package manager for the web
Bower installs packages to bower_components/ . $ bower install <package>. A package can be a GitHub shorthand, a Git endpoint, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found