Mac node npm can not setup bower - macos
I try to setup up bower by code:
sudo npm install -g bower
in my MacPro. but can not setup with success.
my Mac info:
Mac 10.9.5
node -v v0.10.5
npm -v 1.2.18
my code in my terminal:
sudo npm install -g bower
here is error info:
Last login: Tue Nov 18 16:31:37 on ttys001
wutianzhitekiMacBook-Pro:~ wutianzhi$ sudo npm install -g bower
Password:
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower-config
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/archy/0.0.2
npm http GET https://registry.npmjs.org/bower-json
npm http GET https://registry.npmjs.org/bower-endpoint-parser
npm http GET https://registry.npmjs.org/bower-logger
npm http GET https://registry.npmjs.org/cardinal/0.4.0
npm http GET https://registry.npmjs.org/bower-registry-client
npm http GET https://registry.npmjs.org/chalk/0.5.0
npm http GET https://registry.npmjs.org/chmodr/0.1.0
npm http GET https://registry.npmjs.org/decompress-zip/0.0.8
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/fstream-ignore
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/inquirer/0.7.1
npm http GET https://registry.npmjs.org/insight/0.4.3
npm http GET https://registry.npmjs.org/is-root
npm http GET https://registry.npmjs.org/junk
npm http GET https://registry.npmjs.org/lockfile
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/opn
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/p-throttler/0.1.0
npm http GET https://registry.npmjs.org/osenv/0.1.0
npm http GET https://registry.npmjs.org/promptly/0.2.0
npm http GET https://registry.npmjs.org/request-progress/0.3.0
npm http GET https://registry.npmjs.org/retry/0.6.0
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/mkdirp/0.5.0
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/shell-quote
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/stringify-object
npm http GET https://registry.npmjs.org/tmp/0.0.23
npm http GET https://registry.npmjs.org/tar-fs/0.5.2
npm http GET https://registry.npmjs.org/update-notifier/0.2.0
npm http GET https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/bower-endpoint-parser
npm http 304 https://registry.npmjs.org/bower-logger
npm http 304 https://registry.npmjs.org/bower-registry-client
npm http 304 https://registry.npmjs.org/bower-config
npm http 304 https://registry.npmjs.org/cardinal/0.4.0
npm http 304 https://registry.npmjs.org/archy/0.0.2
npm http 304 https://registry.npmjs.org/chmodr/0.1.0
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/fstream-ignore
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/decompress-zip/0.0.8
npm http 304 https://registry.npmjs.org/handlebars
npm http 304 https://registry.npmjs.org/chalk/0.5.0
npm http 304 https://registry.npmjs.org/is-root
npm http 304 https://registry.npmjs.org/junk
npm http 304 https://registry.npmjs.org/insight/0.4.3
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/inquirer/0.7.1
npm http 304 https://registry.npmjs.org/lockfile
npm http 304 https://registry.npmjs.org/opn
npm http 304 https://registry.npmjs.org/promptly/0.2.0
npm http 304 https://registry.npmjs.org/mout
npm http 304 https://registry.npmjs.org/osenv/0.1.0
npm http 304 https://registry.npmjs.org/bower-json
npm http 304 https://registry.npmjs.org/request-progress/0.3.0
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/mkdirp/0.5.0
npm http 304 https://registry.npmjs.org/retry/0.6.0
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/stringify-object
npm http 304 https://registry.npmjs.org/shell-quote
npm http 304 https://registry.npmjs.org/tmp/0.0.23
npm http 304 https://registry.npmjs.org/tar-fs/0.5.2
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/update-notifier/0.2.0
npm http 304 https://registry.npmjs.org/p-throttler/0.1.0
npm http GET https://registry.npmjs.org/supports-color
npm http GET https://registry.npmjs.org/has-ansi
npm http GET https://registry.npmjs.org/strip-ansi
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/escape-string-regexp
npm http GET https://registry.npmjs.org/string-length
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/configstore
npm http GET https://registry.npmjs.org/latest-version
npm http GET https://registry.npmjs.org/semver-diff
npm http GET https://registry.npmjs.org/object-assign
npm http GET https://registry.npmjs.org/os-name
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/configstore
npm http GET https://registry.npmjs.org/lodash.debounce
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/throttleit
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/bower/node_modules/.bin'
npm ERR! error rolling back bower#1.3.12 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/bower/node_modules/.bin']
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/bower/node_modules/.bin' }
npm ERR! Error: No compatible version found: request#'^2.40.0'
npm ERR! Valid install targets:
npm ERR! ["0.10.0","0.8.3","0.9.0","0.9.1","0.9.5","1.0.0","1.1.0","1.1.1","1.2.0","1.9.0","1.9.1","1.9.2","1.9.3","1.9.5","1.9.7","1.9.8","1.9.9","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.1.0","2.1.1","2.2.0","2.2.5","2.2.6","2.2.9","2.9.0","2.9.1","2.9.2","2.9.3","2.9.100","2.9.150","2.9.151","2.9.152","2.9.153","2.9.200","2.9.201","2.9.202","2.9.203","2.10.0","2.11.0","2.11.1","2.11.2","2.11.3","2.11.4","2.12.0","2.14.0","2.16.0","2.16.2","2.16.4","2.16.6","2.18.0","2.19.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.25.0","2.26.0","2.27.0","2.28.0","2.29.0","2.30.0","2.31.0","2.32.0","2.33.0","2.34.0","2.35.0","2.36.0","2.37.0","2.38.0","2.39.0","2.40.0","2.41.0","2.42.0","2.43.0","2.44.0","2.45.0","2.46.0","2.47.0","2.48.0"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10
npm ERR! at RegClient.get_ (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:101:14)
npm ERR! at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:37:12)
npm ERR! at fs.js:266:14
npm ERR! at Object.oncomplete (fs.js:107:15)
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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/semver/head.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/semver/head.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/semver/head.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, open '/usr/local/lib/node_modules/bower/node_modules/mout/random.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/mout/random.js
npm ERR! code ENOENT
npm ERR! errno 34
npm http 304 https://registry.npmjs.org/supports-color
npm ERR! Error: ENOENT, chown '/usr/local/lib/node_modules/bower/node_modules/tmp/test/file-test.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/tmp/test/file-test.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/tmp/test/file-test.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/graceful-fs.js:222:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/register.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/bower-registry-client/lib/register.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/bower/node_modules/fstream-ignore/test/read-file-order.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/fstream-ignore/test/read-file-order.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/decompress-zip/lib/extractors.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/decompress-zip/lib/extractors.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/decompress-zip/lib/extractors.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/bower/node_modules/cardinal/examples/highlight-string.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/cardinal/examples/highlight-string.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/cardinal/examples/highlight-string.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 http 304 https://registry.npmjs.org/escape-string-regexp
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/bower-json/test/test.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/bower-json/test/test.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/bower-json/test/test.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/bower/node_modules/retry/test/integration/test-retry-operation.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/retry/test/integration/test-retry-operation.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/retry/test/integration/test-retry-operation.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 http GET https://registry.npmjs.org/read
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/fstream/lib/dir-writer.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/fstream/lib/dir-writer.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/fstream/lib/dir-writer.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 http 304 https://registry.npmjs.org/string-length
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/inquirer/lib/prompts/checkbox.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/inquirer/lib/prompts/checkbox.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/inquirer/lib/prompts/checkbox.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 http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/pump
npm http GET https://registry.npmjs.org/tar-stream
npm http 304 https://registry.npmjs.org/chalk
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/q/q.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/q/q.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/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/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/bower/node_modules/request/request.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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/request/request.js
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/request/request.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 http 304 https://registry.npmjs.org/configstore
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/bower/node_modules/handlebars/coverage/coverage.json'
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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! cwd /Users/wutianzhi
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! path /usr/local/lib/node_modules/bower/node_modules/handlebars/coverage/coverage.json
npm ERR! fstream_path /usr/local/lib/node_modules/bower/node_modules/handlebars/coverage/coverage.json
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 http 304 https://registry.npmjs.org/latest-version
npm http 304 https://registry.npmjs.org/semver-diff
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 304 https://registry.npmjs.org/object-assign
npm http 304 https://registry.npmjs.org/os-name
npm http 304 https://registry.npmjs.org/has-ansi
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/lodash.debounce
npm http 304 https://registry.npmjs.org/configstore
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/inquirer
npm http 304 https://registry.npmjs.org/throttleit
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/tar-stream
npm http 304 https://registry.npmjs.org/read
npm http 304 https://registry.npmjs.org/pump
npm http GET https://registry.npmjs.org/mute-stream
npm http 304 https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/mute-stream
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/wutianzhi/npm-debug.log
npm ERR! not ok code 0
wutianzhitekiMacBook-Pro:~ wutianzhi$
Looks the same as this reported issue - https://github.com/bower/bower/issues/1597.
Recommended solution is to upgrade your npm version.
Related
Error when Trying to install aglio with npm
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: ENOENT, lstat '/usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj' 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.4.0+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "aglio" npm ERR! cwd /mnt/c/Users/HEWLETT PACKARD' npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj npm ERR! fstream_path /usr/local/lib/node_modules/aglio/node_modules/drafter/node_modules/protagonist/drafter/ext/sos/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj 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! weird error 1 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /mnt/c/Users/HEWLETT PACKARD'/npm-debug.log npm ERR! not ok code 0 I am not sure about this problem. I have tried, but it is useless. If the above error is not readable, you can see the link here. Reference to agilo.
Resolved: I used nvm and successfully installed aglio using node v0.12. Discussed on the issue of github aglio https://github.com/danielgtaylor/aglio/issues/175
Issues Installing yeoman on windows
i'm trying to install yeoman on my windows vista machine my version of node is v0.10.15 my version of npm is 1.3.5 i typed in the command to install yeoman globally npm install -g yo and i get get the following errors as below npm http GET https://registry.npmjs.org/yo npm http 304 https://registry.npmjs.org/yo npm http GET https://registry.npmjs.org/lodash npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/yeoman-generator npm http GET https://registry.npmjs.org/insight npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/sudo-block npm http GET https://registry.npmjs.org/open/0.0.4 npm http GET https://registry.npmjs.org/chalk npm http GET https://registry.npmjs.org/findup npm http GET https://registry.npmjs.org/update-notifier npm http GET https://registry.npmjs.org/shelljs npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/yeoman-generator npm http 304 https://registry.npmjs.org/insight npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/sudo-block npm http 304 https://registry.npmjs.org/chalk npm http 304 https://registry.npmjs.org/update-notifier npm http 304 https://registry.npmjs.org/shelljs npm http 304 https://registry.npmjs.org/open/0.0.4 npm http 304 https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/findup npm http GET https://registry.npmjs.org/has-color npm http GET https://registry.npmjs.org/ansi-styles npm http GET https://registry.npmjs.org/strip-ansi npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/configstore npm http GET https://registry.npmjs.org/inquirer npm http GET https://registry.npmjs.org/object-assign npm http GET https://registry.npmjs.org/lodash.debounce npm http 304 https://registry.npmjs.org/has-color npm http 304 https://registry.npmjs.org/ansi-styles npm http 304 https://registry.npmjs.org/strip-ansi npm http 304 https://registry.npmjs.org/inquirer npm http 304 https://registry.npmjs.org/object-assign npm http 304 https://registry.npmjs.org/lodash.debounce npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/configstore npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/osenv/0.0.3 npm http GET https://registry.npmjs.org/uuid npm http GET https://registry.npmjs.org/js-yaml npm http GET https://registry.npmjs.org/lodash.isfunction npm http GET https://registry.npmjs.org/lodash.isobject npm http GET https://registry.npmjs.org/lodash.now npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/osenv/0.0.3 npm http 304 https://registry.npmjs.org/lodash.isfunction npm http 304 https://registry.npmjs.org/lodash.isobject npm http 304 https://registry.npmjs.org/js-yaml npm http 304 https://registry.npmjs.org/lodash.now npm http GET https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/uuid npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\solidstunna101\App Data\Roaming\npm\node_modules\yo\node_modules\lodash\dist' npm ERR! error rolling back yo#1.1.2 { [Error: ENOTEMPTY, rmdir 'C:\Users\solid stunna101\AppData\Roaming\npm\node_modules\yo\node_modules\lodash\dist'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: 'C:\\Users\\solidstunna101\\AppData\\Roaming \\npm\\node_modules\\yo\\node_modules\\lodash\\dist' } npm ERR! Error: No compatible version found: chalk#'^0.4.0' npm ERR! Valid install targets: npm ERR! ["0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0","0.5.1"] npm ERR! at installTargetsError (c:\Program Files\nodejs\node_modules\npm\li b\cache.js:719:10) npm ERR! at c:\Program Files\nodejs\node_modules\npm\lib\cache.js:638:10 npm ERR! at RegClient.get_ (c:\Program Files\nodejs\node_modules\npm\node_mo dules\npm-registry-client\lib\get.js:105:14) npm ERR! at RegClient.<anonymous> (c:\Program Files\nodejs\node_modules\npm\ node_modules\npm-registry-client\lib\get.js:41:12) npm ERR! at fs.js:266:14 npm ERR! at c:\Program Files\nodejs\node_modules\npm\node_modules\graceful-f s\graceful-fs.js:103:5 npm ERR! at Object.oncomplete (fs.js:107:15) 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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\yeoman-generator\lib\env\resolver.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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\yeoman-generator\lib\env\resolver.js npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\yeoman-generator\lib\env\resolver.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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/abbrev npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/commander npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\shelljs\src\exec.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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\shelljs\src\exec.js npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\shelljs\src\exec.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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\sudo-block\node_modules\chalk\node_modules\has-color\rea dme.md' 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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\sudo-block\node_modules\chalk\node_modules\has-color\readme.md npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\sudo-block\node_modules\chalk\node_modules\has-color\readme.md 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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\sudo-block\node_modules\chalk\node_modules\ansi-styles\r eadme.md' 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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\sudo-block\node_modules\chalk\node_modules\ansi-styles\readme.md npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\sudo-block\node_modules\chalk\node_modules\ansi-styles\readme.md 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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/colors npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\insight\node_modules\inquirer\lib\prompts\checkbox.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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\insight\node_modules\inquirer\lib\prompts\checkbox.js npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\insight\node_modules\inquirer\lib\prompts\checkbox.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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\insight\node_modules\request\request.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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\insight\node_modules\request\request.js npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\node_modules\insight\node_modules\request\request.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\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/lodash._objecttypes npm http GET https://registry.npmjs.org/lodash._isnative npm http 304 https://registry.npmjs.org/lodash._objecttypes npm ERR! Error: ENOENT, lstat 'C:\Users\solidstunna101\AppData\Roaming\npm\node_ modules\yo\node_modules\lodash\dist\lodash.compat.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 Windows_NT 6.0.6001 npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo" npm ERR! cwd c:\xampp\htdocs\frontend_workflows npm ERR! node -v v0.10.15 npm ERR! npm -v 1.3.5 npm ERR! path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\yo\node_m odules\lodash\dist\lodash.compat.js npm ERR! fstream_path C:\Users\solidstunna101\AppData\Roaming\npm\node_modules\y o\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 c:\Program Files\nodejs\node_modules\npm\node_modules\fst ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/lodash._isnative npm http GET https://registry.npmjs.org/esprima npm http GET https://registry.npmjs.org/argparse npm http 304 https://registry.npmjs.org/argparse npm http 304 https://registry.npmjs.org/esprima npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/underscore.string npm ERR! npm ERR! Additional logging details can be found in: npm ERR! c:\xampp\htdocs\frontend_workflows\npm-debug.log npm ERR! not ok code 0 can someone please tell me what i am doing wrong and what i can do to rectify the problem that i may be having
Bower installation errors on Windows, ENOENT, ENOTEMPTY
I am on Windows 8, running command prompt as administrator. I run this command: npm install -g bower This gives me errors. I can't provide the full output to npm-debug.log since I am limited to 30000 characters. StackOverflow complains about the length of my post and that it appears to contain code that is not properly formatted as code even though I put it in a pre, so I removed all lines with " silly " or " verbose ", and I also cut away everything except the end, which is where the interesting bits appear to be. npm-debug.log contains the following: 3850 info install bower-endpoint-parser#0.2.2 3851 info postinstall bower-logger#0.2.2 3864 info install lru-cache#2.5.0 3865 http 304 https://registry.npmjs.org/lodash.debounce 3868 info postinstall bower-endpoint-parser#0.2.2 3870 info postinstall lru-cache#2.5.0 3872 info preinstall bower-config#0.5.2 3877 info preinstall nopt#3.0.1 3878 error error rolling back Error: ENOTEMPTY, rmdir 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\q' 3878 error error rolling back bower#1.3.7 { [Error: ENOTEMPTY, rmdir 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\q'] 3878 error error rolling back errno: 53, 3878 error error rolling back code: 'ENOTEMPTY', 3878 error error rolling back path: 'C:\\Users\\Mikal\\AppData\\Roaming\\npm\\node_modules\\bower\\node_modules\\q' } 3879 error Error: No compatible version found: chalk#'^0.4.0' 3879 error Valid install targets: 3879 error ["0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0"] 3879 error at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:719:10) 3879 error at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:641:10 3879 error at RegClient.get_ (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:101:14) 3879 error at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:37:12) 3879 error at fs.js:266:14 3879 error at Object.oncomplete (fs.js:107:15) 3880 error If you need help, you may report this log at: 3880 error <http://github.com/isaacs/npm/issues> 3880 error or email it to: 3880 error <npm-#googlegroups.com> 3881 error System Windows_NT 6.2.9200 3882 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" 3883 error cwd C:\nodeapps 3884 error node -v v0.10.11 3885 error npm -v 1.2.30 From what I can understand there's an error because the C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\q directory is not empty and thus cannot be removed. However, when I navigate there in Windows Explorer, there is no q directory inside of \nodemodules\. If I go to my command prompt and scroll as far up as I'm able to go, I find the following: ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http GET https://registry.npmjs.org/optimist npm ERR! Error: ENOENT, lstat 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\chalk\node_modules\strip-ansi\readme.md' 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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\chalk\node_modules\strip-ansi\readme.md npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\chalk\node_modules\strip-ansi\readme.md 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\nodejs\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 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\decompress-zip\lib\structures.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\decompress-zip\lib\structures.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\decompress-zip\lib\structures.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\nodejs\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 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\input.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\input.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\inquirer\lib\prompts\input.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\nodejs\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 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\fstream\lib\file-reader.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\fstream\lib\file-reader.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\fstream\lib\file-reader.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\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http GET https://registry.npmjs.org/osenv/0.0.3 npm ERR! Error: ENOENT, lstat 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\semver\semver.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\semver\semver.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\semver\semver.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\nodejs\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/osenv/0.0.3 npm http 200 https://registry.npmjs.org/optimist npm ERR! Error: ENOENT, lstat 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\q\q.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\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 C:\Program Files\nodejs\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 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\request\request.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\request\request.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\request\request.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\nodejs\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 'C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\handlebars\dist\handlebars.amd.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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\handlebars\dist\handlebars.amd.js npm ERR! fstream_path C:\Users\Mikal\AppData\Roaming\npm\node_modules\bower\node_modules\handlebars\dist\handlebars.amd.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\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) Edit: Starting to take matters into my own hands, I noticed that the folders mentioned in the ENOENT, lstat lines were missing. So I attempted to install them. Chalk would not install: C:\nodeapps>npm install -g chalk npm http GET https://registry.npmjs.org/chalk npm http 200 https://registry.npmjs.org/chalk npm http GET https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz npm http 200 https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz npm http GET https://registry.npmjs.org/escape-string-regexp npm http GET https://registry.npmjs.org/has-ansi npm http GET https://registry.npmjs.org/supports-color npm http GET https://registry.npmjs.org/ansi-styles npm http GET https://registry.npmjs.org/strip-ansi npm http 200 https://registry.npmjs.org/ansi-styles npm http 200 https://registry.npmjs.org/strip-ansi npm ERR! Error: No compatible version found: strip-ansi#'^0.3.0' npm ERR! Valid install targets: npm ERR! ["0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.3.0"] npm ERR! at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:719:10) npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:641:10 npm ERR! at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7) npm ERR! at Object.oncomplete (fs.js:107:15) 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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "chalk" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm http 200 https://registry.npmjs.org/escape-string-regexp npm http 200 https://registry.npmjs.org/has-ansi npm http 200 https://registry.npmjs.org/supports-color npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\nodeapps\npm-debug.log npm ERR! not ok code 0 Decompress-zip, Inquirer, fstream, semver, request and handlebars would install, with some warnings. Retrying chalk after installing these did not work. From the "valid install targets" error line and some comments on a similar issue on Github with Macports, I got the idea that I should roll back npm to version 0.3.0. Couldn't figure out how to do it. https://github.com/npm/npm/issues/5470 recommended npm cache clean, so I did that, followed by trying to install chalk again, which this time gave me npm ERR! Error: No compatible version found: ansi-styles#'^1.1.0' npm ERR! Valid install targets: npm ERR! ["0.1.0","0.1.1","0.1.2","0.2.0","1.0.0","1.1.0"] npm ERR! at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:719:10) npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:641:10 npm ERR! at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7) npm ERR! at Object.oncomplete (fs.js:107:15) 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 Windows_NT 6.2.9200 npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "chalk" npm ERR! cwd C:\nodeapps npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\nodeapps\npm-debug.log npm ERR! not ok code 0 This indicates to me that I should roll back to version "1.1.0" - unfortunately I don't know how to do this. On the previously linked GitHub issue, the person only managed to get it working by reinstalling node.js. So unless someone comes up with another solution soon, I think that's what I'll do.
I just went through the same issues attempting to install bower on my Windows 7 machine. I can vouch that reinstalling node.js fixed the problem!
I had similar problems on Windows 7 and got fixed running: npm rm -g bower npm cache clean npm i -g bower
Windows itself handles directories of arbitrary sizes, but Windows Explorer and high level Windows APIs have a limited directory depth. Unfortunately the deep module nesting is a result of the combination of node's module loading semantics and npm solving the dependency hell that occurs with other package managers. (Where you want to use two modules with mutually incompatible dependencies.) The npm bug is here: Provide a way to flatten dependencies to one level to prevent max path issues on windows You can remove a module all the way down with: npm uninstall <modulename> Or, if you'd rather remove the directory, get rimraf: npm install -g rimraf rimraf <dirname> Deduping may also put your tree into a more manageable state: npm dedup
I had a very similar issue when attempting to install Bower via NPM. And after reading everyone's suggestion of clean global cache for npm : npm -g cache clean It wasn't resolving my problem. What I realized was that there were serious compatibility issues with the version of NPM (1.2.18) and a number of newer packages (dezalgo, q, asap, ...). Here is the best part is that I thought I was actually updating NPM using the following: npm install -g npm ...but my console was not displaying errors or warnings, so I assumed everything was updated to the latest. Instead, after realizing that my update to NPM was not activating and I did some digging to find the best way to update your npm: curl https://www.npmjs.org/install.sh | sh Winner, winner, chicken dinner! NPM updated to version 2.1.7. After the NPM update, I did not have any issues with: npm install bower I think this will work with you guys that are having ENOENT problems with dependencies. Cheers!
The problem only is present on Windows OS. And it only is present if the path are already present (previous installation) and you are updating. Nodes npm package manager does not install dependencies in one shared vendor folder (like Composer for e.g. does), but always in the vendor folders node_modules sub directory. This leads to an insane path depth like the following (where integers replace the original folder names): ./project/node_modules/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/ This is not the maximum depth that I've seen so far. Windows has a maximum path length of 260 characters. It's no problem for Windows to create a path with an insane depth. The problem is deleting from that path. To delete such path, you will have to manually go in and rename the folders bit by bit until you reach a total path length <260 chars. And npm fails alongside Windows when trying to remove that folders before updating (and therefore adding) the new folders. Edit As per the comment of #Rarst, there is a solution: Use robocopy. It is very important to follow the below steps as accurate as possible. If you are not doing that, you can erase your harddisk!. There is no guarantee implied and the following is just a documentation of what I did to work around this and no recommendation and no tutorial or otherwise any sort of recommendation by me. Created an empty directory (named _empty) in the the node_modules folder Started powershell (worked with cmd as administrator as well) Entered robocopy _empty dir-to-delete /MIR /s Done Remember: You can erase your harddisk when repeating above steps. So if you do that, you do it at your own risk and you should proceed with extreme caution.
I had same errors and npm cache clear/clean didn't solve my issue. Reinstall from official website instead of aptget solve my issue. download tar.gz file from https://nodejs.org/ extract with : tar -zxvf yourtarfile.tar.gz cd intoyournodefolder .configure make sudo make install then update npm sudo npm install npm -g
Trying to npm install jquery on OSX 10.8.4, but I'm getting xcode-select: Error: No Xcode is selected
Anyone have any ideas on how I can fix this. $sudo npm install jquery -g --save Password: npm http GET https://registry.npmjs.org/jquery npm http 304 https://registry.npmjs.org/jquery npm http GET https://registry.npmjs.org/xmlhttprequest npm http GET https://registry.npmjs.org/htmlparser/1.7.6 npm http GET https://registry.npmjs.org/location/0.0.1 npm http GET https://registry.npmjs.org/navigator npm http GET https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/jsdom npm http 304 https://registry.npmjs.org/htmlparser/1.7.6 npm http 304 https://registry.npmjs.org/xmlhttprequest npm http 304 https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/location/0.0.1 npm http 304 https://registry.npmjs.org/navigator npm http 304 https://registry.npmjs.org/jsdom npm http GET https://registry.npmjs.org/bindings npm http GET https://registry.npmjs.org/cssom npm http GET https://registry.npmjs.org/cssstyle npm http GET https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/bindings > contextify#0.1.6 install /usr/local/lib/node_modules/jquery/node_modules/contextify > node-gyp rebuild npm http 304 https://registry.npmjs.org/cssstyle npm http 304 https://registry.npmjs.org/cssom npm http GET https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.6.tgz npm http 200 https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.6.tgz npm http 200 https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/request/-/request-2.27.0.tgz xcode-select: Error: No Xcode is selected. Use xcode-select -switch <path-to-xcode>, or see the xcode-select manpage (man xcode-select) for further information. gyp: Error 2 running xcodebuild gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/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 Darwin 12.4.1 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/jquery/node_modules/contextify gyp ERR! node -v v0.10.21 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 npm ERR! Error: ENOENT, lstat '/Users/Squirrel/tmp/npm-28408-2WYiLpGG/1385954909058-0.7763686068356037/package/lib/properties/webkitColumnBreakInside.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 Darwin 12.4.1 npm ERR! command "node" "/usr/local/bin/npm" "install" "jquery" "-g" "--save" npm ERR! cwd /Users/Squirrel/Documents/Code/Memry/Memry_Mongoose npm ERR! node -v v0.10.21 npm ERR! npm -v 1.3.11 npm ERR! path /Users/Squirrel/tmp/npm-28408-2WYiLpGG/1385954909058-0.7763686068356037/package/lib/properties/webkitColumnBreakInside.js npm ERR! fstream_path /Users/Squirrel/tmp/npm-28408-2WYiLpGG/1385954909058-0.7763686068356037/package/lib/properties/webkitColumnBreakInside.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 http 200 https://registry.npmjs.org/request/-/request-2.27.0.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/Squirrel/Documents/Code/Memry/Memry_Mongoose/npm-debug.log npm ERR! not ok code 0 I came across this https://github.com/mxcl/homebrew/issues/19424 but I'm not using brew, and What do setting do I use for xcode-select -switch? but my situation is slightly different, so I figured I'd ask before experimenting in terminal. Thanks a bunch. ^_^ UPDATE: I installed Xcode from here: https://developer.apple.com/downloads/index.action# But I'm still getting this: gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16 gyp ERR! stack at Object.oncomplete (fs.js:107:15) gyp ERR! System Darwin 12.5.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/jquery/node_modules/contextify gyp ERR! node -v v0.10.21 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 npm ERR! tar pack Error reading /Users/Squirrel/tmp/npm-480-RYIbB0vg/1386026782247-0.8853209882508963/package npm ERR! addLocalDirectory Could not pack "/Users/Squirrel/tmp/npm-480-RYIbB0vg/1386026782247-0.8853209882508963/package" to "/Users/Squirrel/.npm/cssstyle/0.2.7/package.tgz" npm ERR! not ok code 0
Tried to install topoJSON and got this
Caseys-MacBook-Pro:~ casey$ npm install -g topojson npm http GET https://registry.npmjs.org/topojson npm http 200 https://registry.npmjs.org/topojson npm http GET https://registry.npmjs.org/topojson/-/topojson-1.1.4.tgz npm http 200 https://registry.npmjs.org/topojson/-/topojson-1.1.4.tgz npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson' npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/usr/local/lib/node_modules/topojson', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/topojson', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53', npm ERR! 'Object.oncomplete (fs.js:107:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Darwin 12.4.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "topojson" npm ERR! cwd /Users/casey npm ERR! node -v v0.10.11 npm ERR! npm -v 1.2.30 npm ERR! path /usr/local/lib/node_modules/topojson npm ERR! fstream_path /usr/local/lib/node_modules/topojson npm ERR! fstream_type Directory npm ERR! fstream_class DirWriter npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/topojson' npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23 npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/casey/npm-debug.log npm ERR! not ok code 0 I have no idea what to do or how to fix this.
I think that I fixed by using sudo.
I also fixed it by sudo npm install -g topojson All the process were then successful. Afterwhat my topojson -o output.json input.shp however, didn't worked. Did topojson worked fine after your sudo install ?