繁体   English   中英

无法安装/取消发布npm软件包版本0.0.1

[英]can't install/unpublish npm package version 0.0.1

我的软件包中有奇怪的0.0.1版本,现在无法安装了。

$ npm install nodejs
npm http GET https://registry.npmjs.org/nodejs
npm http 304 https://registry.npmjs.org/nodejs
npm WARN engine nodejs@0.0.1: wanted: {"node":"~0.6.6"} (current: {"node":"v0.8.15","npm":"1.1.66"})
nodejs@0.0.1 node_modules/nodejs

另外,我不能取消发布它:

$ npm unpublish --force nodejs@0.0.1
npm http GET https://registry.npmjs.org/nodejs
npm http 304 https://registry.npmjs.org/nodejs
npm http DELETE https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm http 500 https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm http DELETE https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm http 500 https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm http DELETE https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm http 500 https://registry.npmjs.org/nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm ERR! Error: case_clause {[]}: nodejs/-rev/3-9656e170167cee5a40e53aa02ac52080
npm ERR!     at RegClient.<anonymous> (/usr/local/Cellar/node/0.8.15/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:259:14)

尝试跑步

npm cache clean

该特定版本的nodejs可能现在已保存在缓存中。 在运行命令之前,先查看〜/ .npm并查看nodejs目录中的package.json文件。 我怀疑它会说0.0.1。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM