安装操作系统:
unsigned int
我正在使用Verdaccio 4.3.4
[0..65535]
我可以在我的私人npm Verdaccio上发布,取消发布新库。
现在,我正在尝试在verdaccio上将我自己的库部署到一个新项目上,但是我随时可以得到:
debian Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Verdaccio不想到达https://registry.npmjs.org来检索未在verdaccio上发布的库。
npmproxy@npm:~/verdaccio$ verdaccio
warn --- config file - /home/npmproxy/verdaccio/config.yaml
warn --- Verdaccio started
warn --- Plugin successfully loaded: verdaccio-htpasswd
warn --- Plugin successfully loaded: verdaccio-audit
warn --- http address - http://0.0.0.0:4873/ - verdaccio/4.3.4
fatal--- cannot create server: listen EADDRINUSE: address already in use 0.0.0.0:4873
config.yaml是:
$ npm install @xyz/test-lib
npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.xyz.com/flatted - no such package available
npm ERR! 404
npm ERR! 404 'flatted@^2.0.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of '@xyz/test-lib'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
答案 0 :(得分:0)
您的错误显示: npm 错误! 404 Not Found - GET https://npm.xyz.com/flatted - 没有可用的包
这似乎表明您激活了另一个配置行。 尝试做:
npm set registry <your registry>
npm login
npm publish
我不得不说文档完全不清楚这应该如何工作。 似乎该包需要在上游配置中,要添加它,您需要使用较新的版本。
还有:
17 http fetch GET 404 https://npm.xyz.com/flatted 47ms
似乎表明它从您的注册表中获取它,然后找不到版本。 也许你应该在注册表中删除它以获得上游版本,或者使用正确的版本。