Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing bootstrap 3 via package.json

I'm reading in all documentation that I can run npm install bootstrap@3 how do I put this in my package.json file?

"bootstrap": "3.3.7" <= doesn't work

"bootstrap@3": "3.3.7" <= doesn't work

From bootstrap site:

https://getbootstrap.com/docs/3.3/getting-started/

From create-react-app site:

https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-bootstrap

like image 673
whoisearth Avatar asked Oct 19 '25 16:10

whoisearth


1 Answers

Yes, just put bootstrap and version that you want, like this:

  "dependencies": {
    ...
    "bootstrap": "3.3.7"
  },

After that run:

npm install
like image 197
Paulo Victor Avatar answered Oct 22 '25 05:10

Paulo Victor