Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install using npm - "Error: package lacks shasum" using npm 1.2.11 #77

Closed
jonbuffington opened this issue Feb 16, 2013 · 6 comments

Comments

@jonbuffington
Copy link

While attempting to install tedious, I get the a package lacks shasum error message. Has the package info in the npm registry become corrupted? Could this be fixed be republishing?

As an attempted fix, I ran ``npm cache clean`. No luck.

My full console output is:

npm http GET https://registry.npmjs.org/tedious
npm http 304 https://registry.npmjs.org/tedious
npm http GET https://registry.npmjs.org/async/0.1.22
npm http GET https://registry.npmjs.org/iconv-lite/0.2.4
npm http GET https://registry.npmjs.org/sprintf/0.1.1
npm http 304 https://registry.npmjs.org/iconv-lite/0.2.4
npm http 304 https://registry.npmjs.org/sprintf/0.1.1
npm http 304 https://registry.npmjs.org/async/0.1.22
npm ERR! Error: package lacks shasum
npm ERR!     at fetchit (/usr/local/Cellar/node/0.8.20/lib/node_modules/npm/lib/cache.js:742:19)
npm ERR!     at /usr/local/Cellar/node/0.8.20/lib/node_modules/npm/lib/cache.js:725:19
npm ERR!     at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 12.2.0
npm ERR! command "/usr/local/Cellar/node/0.8.20/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/jcb/Projects/analytics-server
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.11
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jcb/Projects/analytics-server/npm-debug.log
npm ERR! not ok code 0
@korkholeh
Copy link

Have completely the same error when try to install docpad-plugin-eco package

@pekim
Copy link
Collaborator

pekim commented Feb 17, 2013

It looks like it's probably an npm registry issue, as there are recent reports of the same problem with other packages.

https://github.com/isaacs/npm/issues/3172
https://github.com/isaacs/npm/issues/3168

@pekim
Copy link
Collaborator

pekim commented Feb 17, 2013

I've just published v0.1.3, which installs cleanly.

@pekim pekim closed this as completed Feb 17, 2013
@ghost
Copy link

ghost commented Feb 17, 2013

pekim, is there something you did to fix the npm registry issue or does everyone need to update their node packages? I have seen the shasum error occur after installing strscan, burrito, and pulverizr.

@pekim
Copy link
Collaborator

pekim commented Feb 17, 2013

I happened to publish a new version of tedious, after accepting some pull requests. The new version (v0.1.3) seems to install fine, although the previous one (v0.1.2) does not. So anyone installing the latest version of tedious will be ok.

As you say, there do appear to be problems with a number of packages in the npm registry. This is probably best raised at https://github.com/isaacs/npm/issues or https://groups.google.com/forum/?fromgroups#!forum/npm- .

@jonbuffington
Copy link
Author

@pekim Thanks for publishing a new version. Looks like the registry is not quite right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants