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

后端 未结 10 1839
天命终不由人
天命终不由人 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:38

    This worked for me -

    npm i -g npm@3.10.10
    
    0 讨论(0)
  • 2021-02-03 21:38

    In your package.json file search for "dependencies" and editing it to show as

      "dependencies": {
         //same lib
        "jquery": "^1.9.1",
      },
    

    or run this command from cmd

    npm i jquery@1.9.1 --save

    0 讨论(0)
  • 2021-02-03 21:41

    Just do as it says:

    npm i jquery@1.9.1 --save
    

    the option --save is to save this dependency to your project.

    0 讨论(0)
  • 2021-02-03 21:41

    I had the same problem and this is the solution:

    npm install bootstrap jquery popper.js --save
    

    The system automatically resolves the references for you.

    0 讨论(0)
提交回复
热议问题