2013-11-20 16 views
7

私は自分のMacにTitaniumをインストールしましたが、今はnpmパッケージをグローバルにインストールしようとすると失敗します。私はその後、何も返されませんされて作男、初期化を行うと、私のインストールからNPMのインストール-gチタンのインストール後に動作しない

出力は

npm http 304 https://registry.npmjs.org/loggly 
npm http GET https://registry.npmjs.org/underscore 
npm http GET https://registry.npmjs.org/timespan 
npm http GET https://registry.npmjs.org/request 
npm http 304 https://registry.npmjs.org/underscore 
npm http 304 https://registry.npmjs.org/request 
npm http 304 https://registry.npmjs.org/timespan 
/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/bin/grunt-init -> /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init/bin/grunt-init 
[email protected] /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected]) 

です。それはチタニウムの一部である何かが私の-g npmのインストールを妨げているようですね?

これは、私がチタンをインストールして以来起きています。私は手動でgrunt-initをnpmディレクトリにインストールすれば動作させることができますが、これは文字通り私にとって最高の機能を取り除いてしまいました。

助けてください!

+0

npmをアンインストールした後、私はそれを再インストールしても問題は残っています。 npmのログを見て エラー:EACCES、mkdir '/アプリケーション/ TitaniumStudio.app /目次/ MacOS /パスワード:/ usr/local/share/npm/lib' 4エラー{エラー:EACCES、 4エラーerrno:3、 4エラーコード: 'EACCES'、 4エラーパス:エラーコード: 'EACCES'、エラールート: : '/ Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/ usr/local/share/npm/lib'} 5エラーこのコマンドをroot/Administratorとして再度実行してみてください。 – user3011849

+0

まだ何かがそこに残っている>! – user3011849

+0

固定 ノードとnpmを完全に削除してから、nvmを使用して再インストールしてください。 過去にいくつかの権限の問題が発生したため、Titaniumの後続のインストールがすべて終了したようです。 アドバイスの言葉nvmが進む方法のようです! – user3011849

答えて

20

てみタイピング:次に

npm set prefix /usr/local 

再インストールします。

+0

人生保護担当者、ありがとう! –

+0

私の場合、 '' npm set prefix/usr/local/share/npm''を使って同様に働きました – RickyCheers

関連する問題