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)
Related
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'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.
I'm trying to follow the steps on the angularjs website, but I encountered an error.
This is the content of my package.json:
$ cat package.json
{
"name": "angularjs-seed",
"description": "A starter project for AngularJS",
"repository": "https://github.com/angular/angular-seed",
"devDependencies": {
"phantomjs": "~1.9",
"karma": "~0.10.4",
"karma-junit-reporter": "~0.1",
"karma-jasmine": "~0.1.3",
"karma-ng-scenario": "~0.1",
"karma-chrome-launcher": "~0.1.0",
"karma-firefox-launcher": "~0.1.0",
"karma-html2js-preprocessor": "~0.1.0",
"karma-requirejs": "~0.1.0",
"karma-coffee-preprocessor": "~0.1.0",
"karma-phantomjs-launcher": "~0.1.0",
"karma-script-launcher": "~0.1.0"
}
}
This is the error when I try to do $npm install
nisevi#nisevi-IdeaPad angular-phonecat (master):$ npm install
npm http GET https://registry.npmjs.org/phantomjs
npm http GET https://registry.npmjs.org/karma
npm http 304 https://registry.npmjs.org/karma
npm http 304 https://registry.npmjs.org/phantomjs
npm http GET https://registry.npmjs.org/adm-zip/0.2.1
npm http GET https://registry.npmjs.org/kew
npm http GET https://registry.npmjs.org/ncp/0.4.2
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/npmconf/0.0.24
npm http GET https://registry.npmjs.org/di
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/chokidar
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/http-proxy
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/colors/0.6.0-1
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/useragent
npm http GET https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/kew
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/npmconf/0.0.24
npm http 304 https://registry.npmjs.org/di
npm http 304 https://registry.npmjs.org/adm-zip/0.2.1
npm http 304 https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/chokidar
npm http 304 https://registry.npmjs.org/http-proxy
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/ncp/0.4.2
npm http GET https://registry.npmjs.org/config-chain
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/once
npm http GET https://registry.npmjs.org/osenv/0.0.3
npm http GET https://registry.npmjs.org/ini
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/useragent
npm http 304 https://registry.npmjs.org/colors/0.6.0-1
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/log4js
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/config-chain
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/osenv/0.0.3
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/once
> chokidar#0.8.1 postinstall /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/chokidar
> node setup-deps.js
sh: 1: node: not found
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 http 304 https://registry.npmjs.org/ini
npm ERR! Error: ENOENT, utime '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/log4js/lib/debug.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/log4js/lib/debug.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/log4js/lib/debug.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, utime '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/mime/types/node.types'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/mime/types/node.types
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/mime/types/node.types
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, utime '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/optimist/example/line_count_options.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/optimist/example/line_count_options.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/optimist/example/line_count_options.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/glob/test'
File exists: /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/glob/test
Move it away, and try again.
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/glob/test
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/glob/test/pause-resume.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:45:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/connect/lib/middleware'
File exists: /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/connect/lib/middleware
Move it away, and try again.
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/connect/lib/middleware
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/connect/lib/middleware/favicon.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:45:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/http-proxy/examples/http/concurrent-proxy.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/http-proxy/examples/http/concurrent-proxy.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/http-proxy/examples/http/concurrent-proxy.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! chokidar#0.8.1 postinstall: `node setup-deps.js`
npm ERR! `sh "-c" "node setup-deps.js"` failed with 127
npm ERR!
npm ERR! Failed at the chokidar#0.8.1 postinstall script.
npm ERR! This is most likely a problem with the chokidar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node setup-deps.js
npm ERR! You can get their info via:
npm ERR! npm owner ls chokidar
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/minimatch/test/defaults.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/minimatch/test/defaults.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/minimatch/test/defaults.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: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/socket.io/lib/parser.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/socket.io/lib/parser.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/socket.io/lib/parser.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: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/q/q.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/q/q.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/q/q.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: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/coffee-script/lib/coffee-script/command.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/coffee-script/lib/coffee-script/command.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/coffee-script/lib/coffee-script/command.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: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/useragent/lib/regexps.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/useragent/lib/regexps.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/useragent/lib/regexps.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 http GET https://registry.npmjs.org/abbrev
npm ERR! Error: ENOENT, lstat '/home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/lodash/dist/lodash.compat.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log npm
npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/lodash/dist/lodash.compat.js
npm ERR! fstream_path /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/karma/node_modules/lodash/dist/lodash.compat.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 http GET https://registry.npmjs.org/proto-list
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/proto-list
> phantomjs#1.9.7-1 install /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/node_modules/phantomjs
> node install.js
sh: 1: node: not found
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!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nisevi/Documents/proyects/proyects_angular/angular-phonecat/npm-debug.log
npm ERR! not ok code 0
If someone can help me, I'm gonna be very grateful!!
Sometimes npm gives us spooky errors... A pseudo solution I have found to these errors is to manually rebuild the package.json file.
So running through all your dependancies:
npm install packageName --save-dev
It is annoying to say the least but you might be able to find which package is the culprit, because it will get the newest version, maybe there is a version in the package version you are using that depends on some legacy package as it seems to keep yelling about.
UPDATE:
This will solve it however the problem lies in the version of karma. According to the issues page on the phone-cat github page. There is a problem with karma version you are using. Change this to
"karma": "~0.12",
and all is fixed. Now there is no need to go through each package....
This really helped me: "npm faq" fails on Windows 7 ("spawn ENOENT" errors)
Make sure you have the c:\Windows\System32 as the first on the Path environment variable.
Follow the following commands you can easily get installed with angularJS
sudo apt-get install nodejs
List item
sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
npm config set prefix /usr/local
If you want to install bower use following commands
sudo npm install -g bower
bower install angular#1.3.0-beta.13
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.