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

ERR! message failed to fetch from registry: grunt-contrib-jshint #45

Open
nuthankumarns opened this issue Feb 3, 2014 · 5 comments
Open

Comments

@nuthankumarns
Copy link

I am having problems after doing a npm install.

npm ERR! Error: failed to fetch from registry: grunt-contrib-jshint
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach //sites/all/themes/BootstrapBlocks/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-57-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /
/sites/all/themes/BootstrapBlocks
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: grunt-contrib-jshint
npm ERR!

@patrickocoffeyo
Copy link
Owner

Interesting, I just ran an npm install with this package.json file and everything seems to be working. The repo could have possibly been down, try running it again and see what it tells you. :)

@nuthankumarns
Copy link
Author

Tried npm install again., couldn't suceed...

node version -v0.6.12
npm version -1.1.4

Do I have to downgrade?

@patrickocoffeyo
Copy link
Owner

I'm running Node v0.11.5-pre, and npm 1.3.4. I tested down to the latest stable releases (Node v0.10.25 and npm 1.3.26).

Perhaps try upgrading node and npm?

npm update npm -g

If you need that specific version of node for a project, you can use the n module

sudo npm install n -g
sudo n stable //use latest stable release of node

That will allow you to use the current stable version of node, and switch to an older version if you need too by just running sudo n versionnumber.

@gatomalo
Copy link

I am having the same problem - here is my output -PLEASE HELP-

thanks in advance-

ubuntu@ip-10-80-95-184:/var/www/insight$ node -v
v0.6.12
ubuntu@ip-10-80-95-184:/var/www/insight$ npm -v
1.1.4
ubuntu@ip-10-80-95-184:/var/www/insight$ sudo npm install
npm http GET https://registry.npmjs.org/insight-bitcore-api
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt-contrib-concat
npm http GET https://registry.npmjs.org/grunt-contrib-uglify
npm http GET https://registry.npmjs.org/grunt-contrib-watch
npm http GET https://registry.npmjs.org/grunt-macreload
npm http GET https://registry.npmjs.org/grunt-css
npm http GET https://registry.npmjs.org/grunt-markdown

npm ERR! Error: failed to fetch from registry: grunt
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /var/www/insight/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/insight
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: grunt
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/insight/npm-debug.log
npm not ok

@patrickocoffeyo
Copy link
Owner

@gatomalo See the comment directly above yours. I think there may be bugs with some of the package dependencies that BootstrapBlocks has with node < 0.10.0 and older versions of npm.

Perhaps try upgrading node and npm?

npm update npm -g

If you need that specific version of node for a project, you can use the n module

npm install n -g
n stable //use latest stable release of node

That will allow you to use the current stable version of node, and switch to an older version if you need too by just running n versionnumber.

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