【问题标题】:How to upgrade to popperjs/core via package.json: name can only contain URL-friendly characters?如何通过 package.json 升级到 popperjs/core:名称只能包含 URL 友好字符?
【发布时间】:2020-09-27 20:51:05
【问题描述】:

因此,由于无害的弃用警告,我想升级我的 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

原来 popper.js 已被弃用,取而代之的是 popperjs/core。但是这个名字有一个斜线。

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

看起来这个新 repo 的作者决定在名称中添加一个 /,这会破坏我的 package.json。有什么想法可以解决这个问题吗?

在我的 package.json 中,我调用 list "popperjs/core": "2.5.2" 提示 URL 不友好的命名。

【问题讨论】:

    标签: package.json cookiecutter-django popperjs


    【解决方案1】:

    所以,显然,它只需要在前面加上一个@: "@popperjs/core": "2.5.2"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-10
      • 1970-01-01
      • 1970-01-01
      • 2020-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多