Bootstrap: Error in bower.json file bootstrap4v2

Created on 20 Oct 2017  路  8Comments  路  Source: twbs/bootstrap

When I try to run the command "bower i", I see this error

bower bootstrap#^v4.0.0-alpha.6 EMALFORMED Failed to read C:UsersMURONAppDataLocalTempDESKTOP-C4FMOVN-MURONbowerca4c50b905dc21ea17a10549a6f5944f-12648-A0s3u3bower.json
Additional error details:
Unexpected token @ in JSON at position 0

If I use git://github.com/twbs/bootstrap.git#v4.0.0-alpha.6 (without ^), all good, but if I use git://github.com/twbs/bootstrap.git#v^4.0.0-alpha.6 and try loaded last version I see this error
http://c2n.me/3OL911r

All 8 comments

They dropped bower support for beta.2, I am trying to find out how to migrate to NPM. https://stackoverflow.com/questions/46854634/moving-from-bower-to-npm-and-using-main-bower-files

Bower is dead, so we've removed it from v4.

duplicate of #24451

@myorangeca let me know if you have a challenge migrating to NPM.

@jgacuca567 :( Struggling for the last 3 days on it. I ended up posting a question on stackoverflow (link above). Love to get your support or a hint on the right direction. :)

@myorangeca
I had the same issue. I resolved it using following dependencies in package.json (NPM):
"popper.js": "1.12.3",
"bootstrap": "4.0.0-beta.2"

It creates the folder under node_modulesbootstrap

Be aware using nodejs version >= 6. In Visual Studio 2017 I had to change environment variable priority.
(Stackoverflow Update Node Version in Visual Studio 2017)

Hope this solves your migrating problem.

OK, I just published an article on Medium - with step-by-step instructions on how to add React to your ASP.Net core projects. Check out the article here (includes support for Bootstrap 4.0 Beta 2):

https://medium.com/@csharpsolutionsuk/how-to-use-webpack-in-asp-net-core-projects-a-basic-react-template-sample-25a3681a5fc2

Github repo: https://github.com/phantom2017-Nov/AspNetCore-ReactTemplate

@Johann-S if Bower is dead then why is Bootstrap 4.0.0-beta.2 in the bower package manager?

You won't be able to pull Bootstrap beta 2 from Bower 馃槈

Was this page helpful?
0 / 5 - 0 ratings