I tried to install bootstrap in my Angular Project by
npm install --g bootstrap
but i am getting following warning
n
you are installing bootstrap globally .you need to first open your project file after that go to cmd and install the bootstrap and jquery because the compiler didn't understand that where we have to install. the code is for installing bootstrap and jquery is PS E:\web\Angular\Angular program\my-first-project> npm install bootstrap@3 jquery --save then it will download and check-in your package.json file its display the version of your software
If you are using Angular, you don't need those dependencies of jquery etc. Angular is responsible for rendering and manipulating the DOM and if you’re interfering with it using jQuery, you might get some unwanted results.
I resolved the above issue by running the npm command
npm install --save bootstrap
I have resolved jQuery dependency with following steps in my react development project
npm install react-bootstrap bootstrap --save
npm audit fix --force
Result: found 0 vulnerabilities
It also fixes the issue, if another dependency is having issues.
just check the path where you are working:-
$ pwd
if you are not in your project directory then type:
$ cd your-app
after checking all those above things than type:
npm install --g bootstrap
npm installation:
$npm install bootstrap
$npm install bootstrap jquery popper.js --save
then
import to the react folder(index.js):
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';