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

3

11

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"})
Garnishment answered 18/3, 2020 at 21:31 Comment(1)
Is that a specific problem? Did you try upgrading it? What happened?Prudhoe
E
22

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

Exempt answered 18/3, 2020 at 21:42 Comment(2)
afte run commandes this is displayed : npm WARN [email protected] requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself. 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"})Garnishment
bootstrap is depending on the deprecated popper, so you'll have to keep it if you want to use bootstrap.Exempt
D
6

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.

Debidebilitate answered 18/3, 2020 at 21:44 Comment(0)
M
-1

Just write command in command-line and install new popper.js

npm i popper.js
Mediant answered 16/8, 2021 at 12:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.