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

 ̄綄美尐妖づ 提交于 2020-06-12 07:19:48

问题


When I place the command npm update for an existing React project, this is displayed:

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"})

回答1:


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

Run the command npm uninstall popper.js && npm i @popperjs/core to remove the deprecated package and install their new Popper v2




回答2:


This isn't necessarily a problem, unless you are wanting to upgrade from the deprecated version.

If you wish to upgrade, just run npm install @popperjs/core --save and then npm uninstall popper.js --save from within your project directory to install Popper v2 and uninstall the deprecated version.



来源:https://stackoverflow.com/questions/60747771/npm-warn-deprecated-popper-js1-16-1-you-can-find-the-new-popper-v2-at-popperj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!