BootstrapBlocks icon indicating copy to clipboard operation
BootstrapBlocks copied to clipboard

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

Open nuthankumarns opened this issue 11 years ago • 5 comments

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!

nuthankumarns avatar Feb 03 '14 14:02 nuthankumarns

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. :)

patrickocoffeyo avatar Feb 03 '14 22:02 patrickocoffeyo

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

node version -v0.6.12 npm version -1.1.4

Do I have to downgrade?

nuthankumarns avatar Feb 04 '14 06:02 nuthankumarns

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.

patrickocoffeyo avatar Feb 04 '14 15:02 patrickocoffeyo

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

gatomalo avatar May 15 '14 11:05 gatomalo

@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.

patrickocoffeyo avatar May 15 '14 18:05 patrickocoffeyo