简体   繁体   English

如何通过 package.json 升级到 popperjs/core: name 只能包含 URL 友好的字符?

[英]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.

相关问题 如何自动升级 package.json 或 react 库? - How to upgrade package.json or react libraries automatically? 如何在package.json中为包提供自定义网址 - How to give a custom url in package.json for a package 如何通过 package.json 脚本使用默认程序打开文件 - How can I open a file with it's default program via a package.json script 如何获取“ firebase deploy --only functions”命令以在functions /目录中使用package.json? - How can I get “firebase deploy --only functions” command to use the package.json in the functions/ directory? 如何仅在POST请求中在package.json中设置代理? - How to set up proxy in package.json for POST request only? NPM,package.json - 如何在名称中添加“@”依赖项 - NPM, package.json - how to add dependency with “@” in name 在脚本中引用package.json中的存储库URL - Referring to the repository url in package.json in a script 如何在不向 package.json 添加自动升级版本修饰符的情况下执行 yarn add 命令? - How to do yarn add command w/o adding auto-upgrade version modifier to package.json? 如何使用流星添加更新package.json? - How can I update the package.json using meteor add? 如何从 package.json 配置 uglifyjs - How can I configure uglifyjs from package.json
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM