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

时间:2013-03-30 19:17:44

标签: node.js npm

我的包中有一个奇怪的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)

1 个答案:

答案 0 :(得分:1)

尝试运行

npm cache clean

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