Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1

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

npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
like image 678
zouhair zouita Avatar asked Mar 18 '20 21:03

zouhair zouita


People also ask

Is Popperjs deprecated?

npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1.

How does npm solve deprecated warn?

If you find the same deprecation messages, then you can try to see if there's an open issue in GitHub discussing the deprecation messages. While you can run the npm install command to get the required package version, it's not necessary as the module should still work.


2 Answers

npm WARN deprecated [email protected]: 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

like image 166
Al Duncanson Avatar answered Oct 16 '22 23:10

Al Duncanson


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.

like image 27
Philip Wrage Avatar answered Oct 16 '22 23:10

Philip Wrage