Uncaught TypeError: Popper is not a constructor

Uncaught TypeError: Popper is not a constructor

我尝试编辑 Tippy.js 的 CSS 风格。 所以我 npm install tippy 并将其导入到我的 html 中,像这样

<script src="/min/tippy.js/umd/index.all.js"></script> 

但是,它有一些错误。

Uncaught TypeError: Popper is not a constructor
    at createPopperInstance (createTippy.ts:677)
    at mount (createTippy.ts:694)
    at Object.show (createTippy.ts:961)
    at new_control.js:128
    at Array.forEach (<anonymous>)
    at createGraph (new_control.js:101)
    at Object.success (new_control.js:6)
    at u (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at k (jquery.min.js:2)

所以,我尝试在我的目录工作文件中 npm install popper,但它根本不起作用。我错过了什么?

不错的尝试,尽管我建议在通过 npm install 安装 popper 后尝试将其添加到您的 HTML 文件中。

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>