当我通过cmd运行〈npm view e-biz-znnf versions --json〉时,npm显示以下错误:
npm ERR! code E404
npm ERR! 404 Unpublished by undefined on 2022-08-08T09:20:35.527Z
npm ERR! 404
npm ERR! 404 'e-biz-znnf' 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.
{
"error": {
"code": "E404",
"summary": "Unpublished by undefined on 2022-08-08T09:20:35.527Z",
"detail": "\n 'e-biz-znnf' is not in the npm registry.\nYou should bug the author to publish it (or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url."
}
}
该错误表示某个版本的包未发布。
当我检查Verdaccio中的包版本列表时,包的json信息的time节点显示了已经发布的未发布节点(1.1.26-alpha.0)。
但出版版本的时间与未出版版本不同。
软件包在Verdaccio的私人服务器上。
当我删除Verdaccio服务器上package.json文件中未发布的节点时,它不会报告错误。
为什么有未出版的版本?它是怎么发生的?
{
"versions": {
"2.0.0": {
"version": "2.0.0",
"description": "deleted extra fields"
},
"1.1.26-alpha.0": {
"version": "1.1.26-alpha.0",
"types": "./types/index.d.ts",
"scripts": {},
"name": "e-biz-znnf",
"main": "index.js",
"license": "ISC",
"dist": {
"tarball": "http://***/e-biz-znnf/-/e-biz-znnf-1.1.26-alpha.0.tgz",
"shasum": "***",
"integrity": "sha512-***"
},
"description": "tools packages",
"contributors": [],
"author": "",
"_npmVersion": "6.14.17",
"_nodeVersion": "14.20.0",
"_id": "e-biz-znnf@1.1.26-alpha.0"
},
"1.1.25": {
"version": "1.1.25",
"description": "deleted extra fields"
}
},
"users": {},
"time": {
"unpublished": {
"versions": [
"1.1.26-alpha.0"
],
"time": "2022-08-08T09:20:35.527Z"
},
"modified": "2023-01-30T03:17:32.951Z",
"created": "2022-08-08T09:18:19.876Z",
"2.0.0": "2023-01-30T03:17:32.951Z",
"1.1.26-alpha.0": "2022-08-08T09:18:20.123Z",
"1.1.25": "2022-07-26T07:25:00.977Z"
},
"readme": "ERROR: No README data found!",
"name": "e-biz-znnf",
"dist-tags": {
"latest": "2.0.0"
},
"_rev": "295-f8da7bf7f8a7099a",
"_id": "e-biz-znnf",
"_attachments": {}
}
1条答案
按热度按时间bzzcjhmw1#
我认为您需要运行此命令
它会给予你想要的输出