[英]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:因此,由于无害的弃用警告,我想升级我的 package.json 堆栈:
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.原来 popper.js 已被弃用并被 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.看起来这个新 repo 的作者决定在名称中添加一个 / 来破坏我的 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.在我的 package.json 中,我调用 list "popperjs/core": "2.5.2" 这会提示 URL 不友好的命名。
所以,显然,它只需要一个@ 前面:“@popperjs/core”:“2.5.2”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.