How to install popper.js with Bootstrap 4?

后端 未结 11 854
眼角桃花
眼角桃花 2020-12-07 17:17

From what I\'ve read so far, popper.js is a big pain with Bootstrap 4. I can\'t get it to work. I keep getting this error:

Error: Bootstrap dropdown r

11条回答
  •  独厮守ぢ
    2020-12-07 18:01

    I had problems installing it Bootstrap as well, so I did:

    Install popper.js: npm install popper.js@^1.12.3 --save

    Install jQuery: npm install jquery@1.9.1 --save

    Then I had a high severity vulnerability message when installing jquery@1.9.1 and got this message:

    run npm audit fix to fix them, or npm audit for details

    So I did npm audit fix, and after another npm audit fix --force it successfully installed!

提交回复
热议问题