简体   繁体   中英

How to upgrade to popperjs/core via package.json: name can only contain URL-friendly characters?

So, I wanted to upgrade my package.json stack due to a harmless deprecation warning:

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

Turns out popper.js is deprecated and replaced by popperjs/core. But there's a slash in that name.

npm ERR! Invalid package name "popperjs/core": name can only contain URL-friendly characters

Looks like the author of this new repo decided to have a / in the name which breaks my package.json. Any ideas how to approach this?

In my package.json, I call list "popperjs/core": "2.5.2" which prompts the URL-unfriendly naming.

所以,显然,它只需要一个@ 前面:“@popperjs/core”:“2.5.2”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM