2012-01-13 19 views
3

私のアプリケーションをローカルで実行しようとしています。私は、ウェブを検索しましたが、結果がすべてのエラーがのWindows7で取得取得人々を上げNPMインストールエラー

npm ERR! error installing [email protected] 

:にそれが当たったときのフォルダにNPMをインストールしようとする試みで、私はエラーが発生します。私はOSXを使用しています。私はXCodeをインストールしました。あなた以下

は、全体の印刷を見つけるでしょう:すべてのあなたの助けの人たちのための

gorteks$ npm install 
npm http GET https://registry.npmjs.org/jquery 
npm http 304 https://registry.npmjs.org/jquery 
npm http GET https://registry.npmjs.org/jsdom 
npm http GET https://registry.npmjs.org/htmlparser 
npm http 304 https://registry.npmjs.org/htmlparser 
npm WARN [email protected] package.json: bugs['web'] should probably be bugs['url'] 
npm http 304 https://registry.npmjs.org/jsdom 
npm http GET https://registry.npmjs.org/cssom 
npm http GET https://registry.npmjs.org/contextify 
npm http 304 https://registry.npmjs.org/cssom 
npm http 304 https://registry.npmjs.org/contextify 

> [email protected] preinstall /Users/gorteks/Sites/digidj-app/node_modules/jquery/node_modules/jsdom/node_modules/contextify 
> node-waf clean || (exit 0); node-waf configure build 

Nothing to clean (project not configured) 
Setting srcdir to      : /Users/gorteks/Sites/digidj- app/node_modules/jquery/node_modules/jsdom/node_modules/contextify 
Setting blddir to      : /Users/gorteks/Sites/digidj-app/node_modules/jquery/node_modules/jsdom/node_modules/contextify/build 
Checking for program g++ or c++   : not found 
/Users/gorteks/Sites/digidj- app/node_modules/jquery/node_modules/jsdom/node_modules/contextify/wscript:11: error: could not configure a cxx compiler! 
npm ERR! error installing [email protected] 
npm ERR! error installing [email protected] 
npm ERR! error installing [email protected] 
npm ERR! [email protected] preinstall: `node-waf clean || (exit 0); node-waf configure build` 
npm ERR! `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1 
npm ERR! 
npm ERR! Failed at the [email protected] preinstall 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-waf clean || (exit 0); node-waf configure build 
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! 
npm ERR! System Darwin 10.8.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" 
npm ERR! cwd /Users/gorteks/Sites/digidj-app 
npm ERR! node -v v0.6.7 
npm ERR! npm -v 1.1.0-beta-10 
npm ERR! code ELIFECYCLE 
npm ERR! message [email protected] preinstall: `node-waf clean || (exit 0); node-waf  configure build` 
npm ERR! message `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/gorteks/Sites/digidj-app/npm-debug.log 
npm not ok 

感謝を!

+0

update node '、update 'npm'で実行できます。もう一度やり直してください。それでも失敗すれば、 'contextify'の著者に文句を言います。 –

答えて

2

"エラー:cxxコンパイラを構成できませんでした!"

C++コンパイラが必要です。あなたのOSXを使用しているので、Xcodeをインストールする必要があります。

How to compile/install node.js(could not configure a cxx compiler!) (Ubuntu).

+0

私はXCodeを持っています。私もそれをチェックして言及を忘れてしまった。私のバージョン:Version 4.0.2 –

+0

インストール時に「Unix Tools」オプションをチェックしましたか? –

+0

これを見るかもしれない:http://www.techskater.com/web-stuff/problems-installing-node-js-on-os-x-lion/ –

0

は4.0から4.1

+0

これは非常に遅れているので、あなたはアプリケーションを通してXCodeをダウンロードしなければならない今すぐストアしてください。私が試してみると、私はライオンが必要だと言います。ばかげてる。 –

0
にアップグレードする、Xcodeの最新版をダウンロードしてください:ここで

はSO異なるOS /のディストリビューションのために、このエラーを解決するためにさまざまな方法が含まれる問題に答えています

固定!私のために働いたものをheres。 Lionと更新されたXCodeをインストールしました。 シンプルだが時間がかかる。

4

私はApple App StoreからXcode 4.3を使用しました。私はUnixコマンドラインツールをインストールしなければなりませんでした。これは、Xcode - >環境設定 - >ダウンロード - >コマンドラインツール

関連する問題