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

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

    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

提交回复
热议问题