Npm config set python for windows
This version is known to have some problems with Ubuntu 12.04, so your best bet is to update Node (and npm along with it) to the newest version: $ sudo npm update npm -g In this example we were using Node v0.6.10 and npm v1.1.0-3. Old/Buggy NPM VersionĪs you might have noticed from the error message above, the npm version being used is pretty old. Npm ERR! /opt/node0610/lib/node_modules/npm-debug.logĪs I have found out in the past, there are quite a few reasons why you might get the "failed to fetch from registry" error, so here are a few ways to fix it. Npm ERR! Additional logging details can be found in: Npm ERR! message failed to fetch from registry: express Npm ERR! cwd /opt/node0610/lib/node_modules Npm ERR! command "node" "/opt/node0610/bin/npm" "install" "express" Npm ERR! at CleartextStream.emit (events.js:67:17) Npm ERR! at ClientRequest.emit (events.js:67:17) Npm ERR! at Request.emit (events.js:88:20) Npm ERR! at Request.callback (/opt/node0610/lib/node_modules/npm/node_modules/request/main.js:109:22) Npm ERR! at Request._callback (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:137:18) Npm ERR! at cb (/opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:32:9) Npm ERR! at /opt/node0610/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:139:12 Npm ERR! Error: failed to fetch from registry: express
#Npm config set python for windows install
When using NPM to install a module for a project, you may encounter a frustrating error like this: $ npm install express -save