2

NPMを介したjitsuのインストールで問題が発生しました。macosx10.6.8にノード0.8.17とNPM1.2.0がインストールされています。

私が走るとき

$ sudo npm install jitsu -g最初に、readmeファイルが見つからないことを警告します

npm WARN package.json ladder@0.0.0 No README.md file found!

次に、エラーが表示されます。

npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/jitsu/node_modules/request/tests/test-toJSON.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 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jitsu" "-g"
npm ERR! cwd /usr/local/share
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! path /usr/local/lib/node_modules/jitsu/node_modules/request/tests/test-toJSON.js
npm ERR! fstream_path /usr/local/lib/node_modules/jitsu/node_modules/request/tests/test-toJSON.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:297:15)
npm http 304 https://registry.npmjs.org/block-stream
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/jitsu/node_modules/npm/doc'
npm ERR! error rolling back jitsu@0.11.4 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/jitsu/node_modules/npm/doc']
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/jitsu/node_modules/npm/doc' }
npm ERR! Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/jitsu/node_modules/flatiron'
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 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jitsu" "-g"
npm ERR! cwd /usr/local/share
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! path /usr/local/lib/node_modules/jitsu/node_modules/flatiron
npm ERR! code ENOTEMPTY
npm ERR! errno 53
npm ERR! EEXIST, mkdir '/usr/local/lib/node_modules/jitsu/node_modules/wizard/node_modules/prompt/docs'
File exists: /usr/local/lib/node_modules/jitsu/node_modules/wizard/node_modules/prompt/docs
Move it away, and try again.

npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jitsu" "-g"
npm ERR! cwd /usr/local/share
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! path /usr/local/lib/node_modules/jitsu/node_modules/wizard/node_modules/prompt/docs
npm ERR! fstream_path /usr/local/lib/node_modules/jitsu/node_modules/wizard/node_modules/prompt/docs/docco.css
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171: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:297:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/jitsu/node_modules/fstream-npm/node_modules/fstream-ignore/test/.npmignore'
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 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jitsu" "-g"
npm ERR! cwd /usr/local/share
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! path /usr/local/lib/node_modules/jitsu/node_modules/fstream-npm/node_modules/fstream-ignore/test/.npmignore
npm ERR! fstream_path /usr/local/lib/node_modules/jitsu/node_modules/fstream-npm/node_modules/fstream-ignore/test/.npmignore
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:297:15)

これについて何か助けはありますか?

4

2 に答える 2

3

この問題を抱えている他の人には、2つのコマンドが必要です。

npm cache clear
sudo npm install jitsu -g

Nodejitsuのgithubでは、OSXに[sudo]なしでインストールすることを推奨していますが、10.6.8では失敗するようです。

ハッピーコーディング!

于 2013-01-11T18:09:04.447 に答える
2

まず、その古いjitsuディレクトリを削除します[sudo] rm -rf /usr/local/lib/node_modules/jitsu。次に、npmキャッシュをクリアします:npm cache clearそして再試行します:[sudo] npm install jitsu -g

于 2013-01-11T12:23:28.867 に答える