OS OpenSuse 15.2我在向本地npm代理发布新包时遇到了困难
Verdaccio版本5.1.0
安装verdaccio
id verdaccio uid=1001(verdaccio) gid=100(users) группы=100(users)添加了用户verdaccio:
存储:/npm/存储#路径到一个包含插件的目录: /npm/plugins
警告--配置文件- /home/verdaccio/. config /verdaccio/config.yaml警告--插件成功加载: verdaccio-htpasswd警告--插件成功加载:verdaccio审计警告-- http地址- http://172.16.4.76:1234/ -http://172.16.4.76:1234/-
用户名: verdaccio密码:电子邮件:(这是公共的)登录为http://172.16.4.76:1234/.上的verdaccio
然后我光盘到js模块,并做:
```# npm publish --registry http://172.16.4.76:1234/Got an error : (npm )
```javascriptnpm notice easyrabbit@1.0.0
npm notice === Tarball Contents ===
npm notice 418B package.json
npm notice 1B README.md
npm notice 1.5kB class.easyrabbit.mjs
npm notice === Tarball Details ===
npm notice name: easyrabbit
npm notice version: 1.0.0
npm notice package size: 938 B
npm notice unpacked size: 1.9 kB
npm notice shasum: 9f758fe3b7076efb131482242bccab92e6d12218
npm notice integrity: sha512-rFP+zMQlRFZhB[...]MQmtD0g1Y6u9Q==
npm notice total files: 3
npm notice
npm ERR! code E404
npm ERR! 404 Not Found - PUT http://172.16.4.76:1234/easyrabbit - no such package available
npm ERR! 404
npm ERR! 404 'easyrabbit@1.0.0' 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
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-05T11_27_47_111Z-debug.log在verdaccio方面:
http
(节点:12088)不推荐DEP0106 DeprecationWarning: crypto.createDecipher。
信息
信息-允许国家预防机制访问
信息-请求:“获取https://registry.npmjs.org/npm”
http -- 200,req:'GET https://registry.npmjs.org/npm‘(流)
http -- 200,req:‘获取https://registry.npmjs.org/npm',字节: 0/15211570
http -- 200,用户: verdaccio(172.16.4.76),req:'GET /npm',字节: 0/4171881
http
信息
信息-允许国家预防机制访问
http
http -- 304,用户: verdaccio(172.16.4.76),req:'GET /-/whoami',字节: 0/0
http -- 200,用户: verdaccio(172.16.4.76),req:'GET /npm',字节: 0/4171881
http - 172.16.4.76请求“POST/-/v1/登录”
http -- 404,用户: verdaccio(172.16.4.76),req:'POST /-/v1/login',字节数: 18/150
http -- 172.16.4.76请求'PUT /-/user/org.couchdb.user:verdaccio‘
http -- 201,用户: verdaccio(172.16.4.76),req:'PUT
用户:verdaccio‘,字节: 134/110
http - 192.168.3.105请求'GET /‘
http -- 304,user: null(192.168.3.105),req:'GET /',字节: 0/0
http -- 192.168.3.105请求“GET/-/verdaccio/packages”
http -- 304,user: null(192.168.3.105),req:'GET /-/verdaccio/packages',字节: 0/0
http
信息
信息-- verdaccio允许发布给easy兔子。
信息
信息-- verdaccio允许对easy兔子不发布。
http -- 404,用户: verdaccio(172.16.4.76),req:'PUT /easy兔子‘,错误:没有这样的
提供套餐
我做错什么了?
发布于 2021-06-10 09:24:42
我两天前就犯了这个错误。我尝试了一切,甚至更新为verdaccio 5.1。
我的解决方案:在我的package.json中,有一个字段被设置为false。我不知道这是怎么来的,但一旦我删除了它,我就可以再出版了。检查你的package.json,删除一些你不需要的字段,也许你会很幸运。服务器上的Verdaccio错误消息没有提到任何关于格式错误的package.json。
https://stackoverflow.com/questions/67849132
复制相似问题