如何安装 popper v2?

Chr*_*ips 3 javascript jquery npm twitter-bootstrap popper.js

运行命令:

npm install popper.js --save

将返回警告消息:

npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1

用于安装 popper v2 的 npm 命令是什么?

Chr*_*ips 5

npm install @popperjs/core --save

这比我预期的要简单一些。v1 和 v2 之间的格式差异绝对让我失望