2016-11-11 20 views
1

ビルドエージェントのteamcityでビルドプロジェクト中に次のエラーが発生しました。これは、同じエージェントで2日間働いていて、次のエラーが発生しました。助けてください。npm install npmエラー終了ステータス8

これが役立つ場合は、ここで完全なログを更新しました。これは、私が新しいチームシップの構築には失敗しています。私はアプリケーションのサポートを提供していますが、これらの問題のデバッグ方法はまだ学習しています。任意の助けは、たとえ素人の言葉でさえも評価されるだろう。みんなありがとう。

Step 1/5: install dependencies (Node.js NPM) (12s) 
    [Step 1/5] npm install (12s) 
[npm install] Executing npm via wrapping shell script 
[npm install] Starting: /opt/home/teamcity/BuildAgent2/temp/agentTmp/wrapper3833224454633074147.sh install 
[npm install] in directory: /opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c 
[npm install] npm WARN package.json [email protected] No repository field. 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] 
[npm install] > [email protected] install /opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt 
[npm install] > node install.js 
[npm install] 
[npm install] 
[npm install] module.js:340 
[npm install]  throw err; 
[npm install]   ^
[npm install] Error: Cannot find module '/opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt/install.js' 
[npm install]  at Function.Module._resolveFilename (module.js:338:15) 
[npm install]  at Function.Module._load (module.js:280:25) 
[npm install]  at Function.Module.runMain (module.js:497:10) 
[npm install]  at startup (node.js:119:16) 
[npm install]  at node.js:935:3 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.38","npm":"1.4.28"}) 
[npm install] 
[npm install] > [email protected] install /opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs-prebuilt 
[npm install] > node install.js 
[npm install] 
[npm install] 
[npm install] module.js:340 
[npm install]  throw err; 
[npm install]   ^
[npm install] Error: Cannot find module '/opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs-prebuilt/install.js' 
[npm install]  at Function.Module._resolveFilename (module.js:338:15) 
[npm install]  at Function.Module._load (module.js:280:25) 
[npm install]  at Function.Module.runMain (module.js:497:10 
[npm install]  at startup (node.js:119:16) 
[npm install]  at node.js:935:3 
[npm install] 

[npm install] npm ERR! [email protected] install: `node install.js` 
    [npm install] npm ERR! Exit status 8 
    [npm install] npm ERR! 
    [npm install] npm ERR! Failed at the [email protected] install script. 
    [npm install] npm ERR! This is most likely a problem with the phantomjs-prebuilt package, 
    [npm install] npm ERR! not with npm itself. 
    [npm install] npm ERR! Tell the author that this fails on your system: 
    [npm install] npm ERR! node install.js 
    [npm install] npm ERR! You can get their info via: 
    [npm install] npm ERR! npm owner ls phantomjs-prebuilt 
    [npm install] npm ERR! There is likely additional logging output above. 
    [npm install] npm ERR! System Linux 2.6.18-409.el5 
    [npm install] npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" 
    [npm install] npm ERR! cwd /opt/home/teamcity/BuildAgent2/work/cd110a4ceada3f8c 
    [npm install] npm ERR! node -v v0.10.38 
    [npm install] npm ERR! npm -v 1.4.28 
    [npm install] npm ERR! code ELIFECYCLE 
    [npm install] npm ERR! not ok code 0 
    [Step 1/5] Step install dependencies (Node.js NPM) failed 
+0

出力を増やすには 'npm install --verbose'を試してください。ほとんどの場合、phantomjs postinstallスクリプトに関するものです – smnbbrv

+0

ビルド依存関係のphantomjsのバージョン番号を "*"から前のものに変更する – InsOp

答えて

0

最新のパッケージをインストールしようとしているようですが、それは壊れています。 package.jsonを編集し、PhantomJSのバージョンを探します。

"phantomjs-prebuilt": "^2.1.7" 

正確に指定されたバージョンをインストールするには、その前に "^"を取り除いてください。指定されたパッケージの新しいバージョンをインストールしようとしているためビルドに失敗しており、そのパッケージは壊れています。 "^" tellは少なくとも指定されたバージョンをインストールしますが、最新のものを入手してください。

+0

こんにちは@boyan 私はサポートを提供してビルドに失敗しています特定のエージェント上のチームシェアで他のエージェントに取り組んでいる他の人。私はユーザーのためにこれを修正する必要があります。それのための方法はありますか? – Jayesh

+0

あなたのビルドが他のエージェント上で動作しているが、1つのエージェント上で動作していない場合、そのエージェントに関する問題であるか、package.jsonファイルに問題がある可能性があります。 package.jsonを提供するために質問を更新できますか? –