首页 文章

如何用纱线安装私人npm包?

提问于
浏览
2

我需要用纱线安装我公司的私人npm包 - 我该怎么办?

我设置了npm登录身份验证令牌,但它没有帮助 - 私有npm包总是最终出现404找不到等错误 .

yarn add @private/my-private-pacakge

不起作用,但这个npm命令有效:

npm install @private/my-private-package

工作 - 我尝试使用令牌设置yarn config registry / auth但注意帮助 .

错误:

Error: https://registry.npmjs.org/@private/my-private-package/-/my-private-package-0.0.5.tgz: Request failed "404 Not Found"
      at Request.res (/..../........./.yarn/updates/0.18.1/lib/fetchers/tarball-fetcher.js:231:20)

1 回答

  • 3

    所以我的问题是配置错误我将strict-ssl配置为false,注册表配置为http而不是https .

相关问题