I'm attempting to use Node to install an angular package for yeoman. Here's the command I run
"npm install -g generator-angular"
Everything seems to work until I get this error
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:65:16)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:659:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:101:17)
gyp ERR! stack at maybeClose (child_process.js:773:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:840:5)
gyp ERR! System Linux 3.8.0-37-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.11.10-pre
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
Further down, it returns this error.
npm ERR! Error: ENOENT, lstat '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js'
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 Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js
npm ERR! fstream_path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test'
npm ERR! error rolling back jsdom#0.8.11 { [Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir \'/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test\'',
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test' }
npm ERR! Error: ENOENT, open '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js'
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 Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js
npm ERR! code ENOENT
npm ERR! errno -2
npm WARN optional dep failed, continuing hawk#1.0.0
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules'
npm ERR! error rolling back angular#1.2.16 { [Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir \'/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules\'',
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules' }
npm ERR! contextify#0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify#0.1.8 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/punycode
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/npm-debug.log
npm ERR! not ok code 0
I tried "npm install contextify", and I was met with this:
npm http GET https://registry.npmjs.org/angularnpm
npm http GET https://registry.npmjs.org/install
npm http GET https://registry.npmjs.org/generator
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/generator
npm http 404 https://registry.npmjs.org/angularnpm
npm ERR! 404 'angularnpm' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angularnpm" "install" "contextify"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! code E404
npm http 200 https://registry.npmjs.org/install
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/npm-debug.log
npm ERR! not ok code 0
I changed the permissions of my local directory with
"sudo chown -R whoami /usr/local/"
I'm thinking this is a permissions or PATH error, but I have no idea what I'm dealing with here.
Could this be because of a Yeoman issue?
It's not
npm install -g generator angular
it's
npm install -g generator-angular
with the dash between generator and angular.
Related
Using npm i installed the bower, but i got error on my cmd. how to fix this?
here is the error:
npm http 304 http://registry.npmjs.org/qs
npm ERR! Error: ENOENT, lstat 'D:\Yeoman\node_modules\bower\node_modules\handleb
ars\node_modules\uglify-js\lib\mozilla-ast.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\Yeoman
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path D:\Yeoman\node_modules\bower\node_modules\handlebars\node_modules\
uglify-js\lib\mozilla-ast.js
npm ERR! fstream_path D:\Yeoman\node_modules\bower\node_modules\handlebars\node_
modules\uglify-js\lib\mozilla-ast.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 http://registry.npmjs.org/stringstream
npm http 200 http://registry.npmjs.org/mime-types
npm ERR! error rolling back Error: EPERM, unlink 'D:\Yeoman\node_modules\bower\n
ode_modules\handlebars\node_modules\optimist\example\short.js'
npm ERR! error rolling back bower#1.3.9 { [Error: EPERM, unlink 'D:\Yeoman\node
_modules\bower\node_modules\handlebars\node_modules\optimist\example\short.js']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'D:\\Yeoman\\node_modules\\bower\\node_modul
es\\handlebars\\node_modules\\optimist\\example\\short.js' }
npm ERR! Error: UNKNOWN, open 'C:\Users\mb112830\AppData\Roaming\npm-cache\lodas
h\2.4.1\package\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\Yeoman
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path C:\Users\mb112830\AppData\Roaming\npm-cache\lodash\2.4.1\package\p
ackage.json
npm ERR! code UNKNOWN
npm ERR! errno -1
npm http 200 http://registry.npmjs.org/osx-release
npm ERR! Error: ENOENT, lstat 'D:\Yeoman\node_modules\bower\node_modules\handleb
ars\node_modules\optimist\example\short.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\Yeoman
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path D:\Yeoman\node_modules\bower\node_modules\handlebars\node_modules\
optimist\example\short.js
npm ERR! fstream_path D:\Yeoman\node_modules\bower\node_modules\handlebars\node_
modules\optimist\example\short.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 http://registry.npmjs.org/lodash.isobject
npm http 200 http://registry.npmjs.org/punycode
npm http 200 http://registry.npmjs.org/nopt
npm http 200 http://registry.npmjs.org/core-util-is
npm http GET http://registry.npmjs.org/registry-url
npm http GET http://registry.npmjs.org/got
npm http 304 http://registry.npmjs.org/string_decoder
npm http 200 http://registry.npmjs.org/isarray
npm http 200 http://registry.npmjs.org/chainsaw
npm http 200 http://registry.npmjs.org/buffers
npm http GET http://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz
npm http GET http://registry.npmjs.org/esprima
npm http 200 http://registry.npmjs.org/combined-stream
npm http 200 http://registry.npmjs.org/asn1
npm ERR! Error: ENOENT, lstat 'D:\Yeoman\node_modules\bower\node_modules\update-
notifier\node_modules\configstore\node_modules\uuid\uuid.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\Yeoman
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path D:\Yeoman\node_modules\bower\node_modules\update-notifier\node_mod
ules\configstore\node_modules\uuid\uuid.js
npm ERR! fstream_path D:\Yeoman\node_modules\bower\node_modules\update-notifier\
node_modules\configstore\node_modules\uuid\uuid.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul
es\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
I was running node and npm absolutely fine, till today. I am trying to install gulp.
sudo npm install -g gulp and I get a crazy list of errors.
I have tried to re-install node via the Mackintosh Installer, however no difference. Not sure what I was running before the re-install, but now I am running latest stable versions of node and npm.
The same happens if I try to install any node packages. Any suggestions?
ahm:www ahmet$ node -v
v0.10.29
ahm:www ahmet$ npm -v
1.4.14
ahm:www ahmet$ sudo npm install -g gulp
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._isnative'
npm ERR! error rolling back gulp-util#2.2.19 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._isnative']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._isnative' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash'
npm ERR! error rolling back gulp#3.8.5 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash' }
npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/multipipe/node_modules/duplexer2/node_modules/readable-stream/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/multipipe/node_modules/duplexer2/node_modules/readable-stream/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/glob/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/glob/README.md
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/glob/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_passthrough.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/Gruntfile.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/Gruntfile.js
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/Gruntfile.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._reunescapedhtml/LICENSE.txt'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._reunescapedhtml/LICENSE.txt
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._reunescapedhtml/LICENSE.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._escapehtmlchar/LICENSE.txt'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._escapehtmlchar/LICENSE.txt
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.escape/node_modules/lodash._escapehtmlchar/LICENSE.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/glob/glob.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/glob/glob.js
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/glob/glob.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/minimatch/minimatch.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/minimatch/minimatch.js
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/minimatch/minimatch.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash._shimkeys'
npm ERR! error rolling back vinyl-fs#0.3.4 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash._shimkeys']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash._shimkeys' }
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash.isobject/LICENSE.txt'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash.isobject/LICENSE.txt
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/lodash.defaults/node_modules/lodash.keys/node_modules/lodash.isobject/LICENSE.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash/lodash.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "gulp"
npm ERR! cwd /Applications/AMPPS/www
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash/lodash.js
npm ERR! fstream_path /usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/findup-sync/node_modules/lodash/lodash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at process.addListener (events.js:160:15)
at process.on.process.addListener (node.js:773:26)
at spinner (/usr/local/lib/node_modules/npm/node_modules/char-spinner/spin.js:35:13)
at Object.npm.spinner.start (/usr/local/lib/node_modules/npm/lib/npm.js:172:25)
at Object.commandCache.(anonymous function) (/usr/local/lib/node_modules/npm/lib/npm.js:202:19)
at /usr/local/lib/node_modules/npm/lib/cache.js:289:18
at c (/usr/local/lib/node_modules/npm/lib/cache.js:129:12)
at /usr/local/lib/node_modules/npm/lib/cache.js:145:5
at process._tickCallback (node.js:419:13)
I had to delete my .npm folder, then install npm again to get this working.
sudo rm -rf ~/.npm
sudo npm install -g npm#1.4.14
Once I had done this, I was able to run sudo npm install -g gulp without issue.
I faced similar problem before in my server, it was solved by clearing the npm cache by below commands:
# rm -rf ~/.npm
# npm cache clear
Or you can just clear the physical folder at
C:\Users\{{USERFolder}}\AppData\Roaming\npm-cache
source : http://origin1tech.wordpress.com/2013/08/31/clearing-nodes-npm-cache/
When installing topojson (sudo npm install -g topojson) I get the following errors:
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gypnpm ERR!http GET https://registry.npmjs.org/assert-plus/0.1.2
cwd /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
npm gyp ERR!http not ok
GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties'
npm ERR! error rolling back jsdom#0.5.7 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties' }
npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitUserSelect.js'
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 Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "topojson"
npm ERR! cwd /home/peter
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitUserSelect.js
npm ERR! code ENOENT
npm ERR! errno 34
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/async
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/images/logo.png'
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 Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "topojson"
npm ERR! cwd /home/peter
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/images/logo.png
npm ERR! fstream_path /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/hawk/images/logo.png
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js'
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 Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "topojson"
npm ERR! cwd /home/peter
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js
npm ERR! fstream_path /usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/topojson/node_modules'
npm ERR! error rolling back topojson#1.6.14 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/topojson/node_modules']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/topojson/node_modules' }
npm ERR! weird error 1
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/peter/npm-debug.log
npm ERR! not ok code 0
I'm running on Ubuntu 14.04 with all updates installed. The versions of my tools are:
npm: 1.3.10
nodejs: v0.10.25
node-gyp: v0.10.10
I looked into the first mentioned path (/usr/local/lib/node_modules/topojson/node_modules/d3/node_modules/jsdom/node_modules) but only found request and not contextify. This suggest that the dependency of a dependency of topojson had problems?
And the additional log which should be found at /home/peter/npm-debug.log doesn't exist.
I am new to node. Can someone please tell me why this is failing?
sudo su
nvm use 0.10
git clone https://github.com/bitpay/insight.git && cd insight
npm install
...output omitted...
> leveldown#0.10.2 install /insight/node_modules/insight-bitcore-api/node_modules/leveldown
> node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.11.0-19-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /insight/node_modules/insight-bitcore-api/node_modules/leveldown
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
...
npm ERR! Error: ENOENT, lstat '/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0002.dat'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.11.0-19-generic
npm ERR! command "/root/.nvm/v0.10.26/bin/node" "/root/.nvm/v0.10.26/bin/npm" "install"
npm ERR! cwd /insight
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0002.dat
npm ERR! fstream_path /insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/crypto-browserify/test/vectors/byte0002.dat
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /root/.nvm/v0.10.26/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/timers-browserify/node_modules/process'
npm ERR! error rolling back insight-bitcore-api#0.1.9 { [Error: ENOTEMPTY, rmdir '/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/timers-browserify/node_modules/process']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/insight/node_modules/insight-bitcore-api/node_modules/bitcore/node_modules/browserify/node_modules/timers-browserify/node_modules/process' }
npm ERR! leveldown#0.10.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown#0.10.2 install script.
npm ERR! This is most likely a problem with the leveldown package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls leveldown
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-19-generic
npm ERR! command "/root/.nvm/v0.10.26/bin/node" "/root/.nvm/v0.10.26/bin/npm" "install"
npm ERR! cwd /insight
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
Any insight into this is appreciated! I'm only listing the first ERR blocks...
This line:
/bin/sh: 1: node: not found
leads me to believe node isn't properly installed.. What happens when you type 'node' on a command line?
You need to have nodejs to be accessible with node in the command line.
But: In the Ubuntu repos there is a confusion/conflict between nodejs and ax25-node, the latter occupying the /usr/bin/node path. When you never installed node aka ax25-node you can simply
sudo aptitude install nodejs-legacy
This installs nodejs and creates a symbolic link to /usr/bin/node.
Now npm installs run without any error messages.
In my case the same error as yours appeared when trying to
npm install -g Haraka
The solution is from a fairly unrelated stackoverflow post:
nodejs vs node on ubuntu 12.04
I ran npm install node (even though it was already installed to some degree) and the issue was resolved.
I have nodejs installed, i already have gcc, python etc on ubuntu virtualbox.
node.js is working fine.
while installing mechanize or zombiejs modules using npm i get these strange errors. Help me solve this thanks.
i am using these commands to install modules.
sudo npm install zombie.
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
gyp: /home/khushal/.node-gyp/0.10.18/common.gypi not found (cwd: /home/khushal/node_modules/zombie/node_modules/jsdom/node_modules/contextify) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:424:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/khushal/node_modules/zombie/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm http 200 https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.1.tgz
npm ERR! Error: ENOENT, lstat '/home/khushal/node_modules/zombie/node_modules/html5/data/tree-construction/tests19.dat-25/result.tree'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zombie"
npm ERR! cwd /home/khushal
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/khushal/node_modules/zombie/node_modules/html5/data/tree-construction/tests19.dat-25/result.tree
npm ERR! fstream_path /home/khushal/node_modules/zombie/node_modules/html5/data/tree-construction/tests19.dat-25/result.tree
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zombie"
npm ERR! cwd /home/khushal
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE
npm ERR! fstream_path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zombie"
npm ERR! cwd /home/khushal
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js
npm ERR! fstream_path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm ERR! weird error 1
npm ERR! Error: ENOENT, chown '/home/khushal/tmp/npm-2174-Ll1tUpTG/1379314549896-0.5816432405263186/package/LICENSE'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zombie"
npm ERR! cwd /home/khushal
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/khushal/tmp/npm-2174-Ll1tUpTG/1379314549896-0.5816432405263186/package/LICENSE
npm ERR! fstream_path /home/khushal/tmp/npm-2174-Ll1tUpTG/1379314549896-0.5816432405263186/package/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zombie"
npm ERR! cwd /home/khushal
npm ERR! node -v v0.10.18
npm ERR! npm -v 1.3.8
npm ERR! path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js
npm ERR! fstream_path /home/khushal/node_modules/zombie/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/khushal/npm-debug.log
npm ERR! not ok code 0
The registry URL is pointing to https, try this
npm config set registry="http://registry.npmjs.org/"
and then try installing the module. You are behind a proxy perhaps that is blocking secure (https) connections.