npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1 - 3 but none is installed

后端 未结 10 1838
天命终不由人
天命终不由人 2021-02-03 21:11

I tried to install bootstrap in my Angular Project by

npm install --g bootstrap

but i am getting following warning

n

10条回答
  •  无人及你
    2021-02-03 21:37

    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';

提交回复
热议问题