node.js - NPM error - failed to fetch from registry: http://registry.npmjs.org/sass -
i deleted project folder (/var/www/current/
) morning due git issue having , unable npm install
.
can see why failing fetch sass registry?
vagrant@localhost /var/www/current (crm-email)$npm install npm err! linux 3.10.0-123.4.4.el7.x86_64 npm err! argv "node" "/usr/local/bin/npm" "install" npm err! node v0.10.30 npm err! npm v2.13.3 npm err! failed fetch registry: http://registry.npmjs.org/sass npm err! npm err! if need help, may report error at: npm err! <https://github.com/npm/npm/issues> npm err! please include following file support request: npm err! /var/www/releases/20150805093500/npm-debug.log
my package.json
:
{ "name": "crmpicco", "version": "1.0.0", "description": "crmpicco platform", "main": "gulpfile.js", "dependencies": { "backbone": "^1.1.2", "browser-sync": "^2.3.1", "browserify": "^10.1.0", "browserify-handlebars": "^1.0.0", "browserify-shim": "^3.8.6", "coffee-script": "^1.9.1", "coffeeify": "^1.1.0", "gulp": "^3.8.11", "gulp-changed": "^1.2.1", "gulp-clean": "^0.3.1", "gulp-coffee": "^2.3.1", "gulp-concat": "^2.5.2", "gulp-exec": "^2.1.1", "gulp-minify-css": "^1.0.0", "gulp-no-media-queries": "0.0.5", "gulp-plumber": "^1.0.0", "gulp-rename": "^1.2.2", "gulp-rev": "^3.0.1", "gulp-sass": "^1.3.3", "gulp-sourcemaps": "^1.5.2", "gulp-uglify": "^1.1.0", "gulp-usemin": "^0.3.11", "gulp-util": "^3.0.4", "handlebars": "^3.0.3", "hbsfy": "^2.2.1", "jquery": "^2.1.4", "jquery-lazyload": "^1.9.5", "jquery-ui": "^1.10.5", "lodash": "^3.8.0", "raf": "^2.0.4", "require-dir": "^0.3.0", "rework": "^1.0.1", "rework-rem2px": "0.0.1", "run-sequence": "^1.0.2", "slick-carousel": "1.5.5", "video.js": "^4.12.10", "vinyl-source-stream": "^1.1.0", "vinyl-buffer": "^1.0.0" }, "devdependencies": { "gulp-kss": "^0.0.2", "gulp-rework": "^1.0.3", "kss": "^2.0.2", "rework-rem-fallback": "^1.0.0", "watchify": "^3.2.1" }, "scripts": { "kss-node": "kss-node --config=kss-settings.json" }, "repository": { "type": "git", "url": "git@bitbucket.org:crmpicco/crmpicco.git" }, "author": "", "license": "isc", "browserify": { "transform": [ "browserify-shim", "hbsfy" ] }, "browser": { "fixonscroll": "./ui/js/generated/modules/fixonscroll.js", "overlaymask": "./ui/js/generated/modules/overlaymask.js", "collapse": "./ui/bower_components/bootstrap-sass/assets/javascripts/bootstrap/collapse.js", "alert": "./ui/bower_components/bootstrap-sass/assets/javascripts/bootstrap/alert.js", "transition": "./ui/bower_components/bootstrap-sass/assets/javascripts/bootstrap/transition.js", "tabs": "./ui/bower_components/bootstrap-sass/assets/javascripts/bootstrap/tab.js", "jquery-validate": "./ui/bower_components/jquery-validate/build/release.js", "formactionpolyfill": "./ui/js/vendor/jquery.form.submission.polyfill.js", "fancybox": "./ui/bower_components/fancybox/source/jquery.fancybox.pack.js", "checkout_shipping": "./src/crmpicco/webbundle/resources/public/js/checkout/shipping.js", "lazyimg": "./node_modules/jquery-lazyload/jquery.lazyload.js", "easyzoom": "./ui/bower_components/easyzoom/dist/easyzoom.js" }, "browserify-shim": { "fixonscroll": { "exports": "fixonscroll", "depends": "jquery" }, "jquery-validate": { "exports": "jquery-validate", "depends": "jquery" }, "checkout_shipping": { "exports": "checkout_shipping", "depends": "jquery" }, "fancybox": { "exports": "fancybox", "depends": "jquery" }, "collapse": { "exports": "collapse", "depends": "jquery" }, "easyzoom": { "exports": "easyzoom", "depends": "jquery" }, "transition": { "exports": "transition", "depends": "jquery" }, "tabs" :{ "exports" : "tabs", "depends" : ["jquery", "transition"] }, "lazyimg": { "exports": "lazyimg", "depends": "jquery" } } }
inside npm-debug.log
there sort of stuff:
14282 verbose build /var/www/releases/20150805093500/node_modules/gulp-kss 14283 verbose unlock done using /home/vagrant/.npm/_locks/gulp-kss-84b665cc5e91af79.lock /var/www/releases/20150805093500/node_modules/gulp-kss 14284 verbose stack error: failed fetch registry: http://registry.npmjs.org/sass 14284 verbose stack @ /usr/local/lib/node_modules/npm/lib/cache/caching-client.js:163:27 14284 verbose stack @ /usr/local/lib/node_modules/npm/lib/cache/caching-client.js:52:8 14284 verbose stack @ f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:17:25) 14284 verbose stack @ /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:68:16 14284 verbose stack @ f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:17:25) 14284 verbose stack @ cachingregistryclient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:255:12) 14284 verbose stack @ request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:170:14) 14284 verbose stack @ request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:198:22) 14284 verbose stack @ request.emit (events.js:98:17) 14284 verbose stack @ request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1057:14) 14285 verbose cwd /var/www/releases/20150805093500 14286 error linux 3.10.0-123.4.4.el7.x86_64 14287 error argv "node" "/usr/local/bin/npm" "install" 14288 error node v0.10.30 14289 error npm v2.13.3 14290 error failed fetch registry: http://registry.npmjs.org/sass 14291 error if need help, may report error at: 14291 error <https://github.com/npm/npm/issues> 14292 verbose exit [ 1, true ] 14293 verbose unbuild node_modules/gulp-kss/node_modules/kss 14294 info preuninstall kss@0.3.7 14295 info uninstall kss@0.3.7
this cache lives...and folder exists:
vagrant@localhost /var/www/current (crm-email)$npm config --global cache /home/vagrant/.npm
this turned out not issue local configuration npm issue affecting many users.
one of project developers said:
hey all: our apologies. part of routine security tightening-up, added requirement package documents have time field our front door servers. old packages (like 3+ years old) don't have field frontdoor started refusing serve them.
we loosened restriction morning. no data lost, temporary bug.
more: https://github.com/npm/npm/issues/9168#issuecomment-128034802
Comments
Post a Comment