npm WARN deprecated popper.js@1.16.1:您可以在@popperjs/core 找到新的 Popper v2,这个包专用于旧版 v1
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
当我为现有的 React 项目放置命令 npm update
时,会显示:
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
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
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
运行 命令 npm uninstall popper.js && npm i @popperjs/core
删除已弃用的软件包并安装其新的 Popper v2
这不一定是问题,除非您想从已弃用的版本升级。
如果您想升级,只需 运行 npm install @popperjs/core --save
然后 npm uninstall popper.js --save
从您的项目目录中安装 Popper v2 并卸载已弃用的版本。
只需在命令行中编写命令并安装新的popper.js
npm i popper.js
当我为现有的 React 项目放置命令 npm update
时,会显示:
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
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
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
运行 命令 npm uninstall popper.js && npm i @popperjs/core
删除已弃用的软件包并安装其新的 Popper v2
这不一定是问题,除非您想从已弃用的版本升级。
如果您想升级,只需 运行 npm install @popperjs/core --save
然后 npm uninstall popper.js --save
从您的项目目录中安装 Popper v2 并卸载已弃用的版本。
只需在命令行中编写命令并安装新的popper.js
npm i popper.js