nodeがアップグレードされた後、プロジェクトのnode-sassが間違った問題を報告しました.
2196 ワード
フロントエンドの開発には高いバージョンのnodejsが使われていますが、テストサーバのjnkinsは低バージョンのnodejsをパッケージ化しています.アップグレード(オーバーロード)サーバー上のnodejsは環境が一致しています.結果、jsはパッケージ化に失敗しました.
……
gyp verb remove removing target version:10.15.3 gyp verb remove removing development files for version:10.15.3 gyp ERR!configure error gyp ERRstack Error:EACCES:permission denied、mkdir'/home/jecins/.jecins/workspace/h 5-front-rebuild/node_modules/node-sass/.node-gyp'gyp ERR!System Linux 2.62-642.el 6.6 x 86_64 gyp ERRcommmand「/usr/local/node-v 10.15.3/bin/node」「/home/jennkins/.jjjennkins/workspace/h 5-froon t rebuild/nodemomodyyp/bin/node gyyyyyyyp/js」「rebuild」「verbuild」「verbobobogggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggERR!cwd/home/jokins/jeck space/h 5-front-rebuild/node_modules/node-sass gype ERR!node-v 10.15.3 gyp ERR!node-gyp-v 3.8.0 gyp ERR!not ok Build failed with error code:1 npm WARN [email protected] a peer of ajv@^6.0.0 but none is installed.You must install peer dependencies yourself.npm WARN [email protected] a peer of webpack@^2..0|𞓜^3.0|𞓜^4.0.0 but none is installed.You must install peer dependencies yourself.npm [email protected] [email protected] license field.npm WARN optional SKIPPING OPTION DEPENDENCY:[email protected](nodemoodules/fseventts):npm WARN nots SKIPPING OPTTIONAL DEPENDENCY:Usupported plotform [email protected]:wantd{「os」:「darwin」、「arch」:「any」(current:{「os」:「linux」、「arch」:「x 64」)
npm ERRcode EIFFECYCLE npm ERR!errno 1 npm [email protected]:`node scripts/build.js`npm ERR!Exit status 1 npm ERR! npm ERRFailed at the [email protected] script.npm ERR!This is probably not a problem with npm.The e is likely additional logging output above.
npm ERRA complettee logs of this run can be found in:npm ERR! /root/.npm/_logs/2019-04-26 T 01_59_36_792 Z-debug.log
エラー情報を分析します.npmを設定して解決し、node-sassを再インストールすればいいです.
……
gyp verb remove removing target version:10.15.3 gyp verb remove removing development files for version:10.15.3 gyp ERR!configure error gyp ERRstack Error:EACCES:permission denied、mkdir'/home/jecins/.jecins/workspace/h 5-front-rebuild/node_modules/node-sass/.node-gyp'gyp ERR!System Linux 2.62-642.el 6.6 x 86_64 gyp ERRcommmand「/usr/local/node-v 10.15.3/bin/node」「/home/jennkins/.jjjennkins/workspace/h 5-froon t rebuild/nodemomodyyp/bin/node gyyyyyyyp/js」「rebuild」「verbuild」「verbobobogggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggERR!cwd/home/jokins/jeck space/h 5-front-rebuild/node_modules/node-sass gype ERR!node-v 10.15.3 gyp ERR!node-gyp-v 3.8.0 gyp ERR!not ok Build failed with error code:1 npm WARN [email protected] a peer of ajv@^6.0.0 but none is installed.You must install peer dependencies yourself.npm WARN [email protected] a peer of webpack@^2..0|𞓜^3.0|𞓜^4.0.0 but none is installed.You must install peer dependencies yourself.npm [email protected] [email protected] license field.npm WARN optional SKIPPING OPTION DEPENDENCY:[email protected](nodemoodules/fseventts):npm WARN nots SKIPPING OPTTIONAL DEPENDENCY:Usupported plotform [email protected]:wantd{「os」:「darwin」、「arch」:「any」(current:{「os」:「linux」、「arch」:「x 64」)
npm ERRcode EIFFECYCLE npm ERR!errno 1 npm [email protected]:`node scripts/build.js`npm ERR!Exit status 1 npm ERR! npm ERRFailed at the [email protected] script.npm ERR!This is probably not a problem with npm.The e is likely additional logging output above.
npm ERRA complettee logs of this run can be found in:npm ERR! /root/.npm/_logs/2019-04-26 T 01_59_36_792 Z-debug.log
エラー情報を分析します.npmを設定して解決し、node-sassを再インストールすればいいです.
npm config set user 0
npm config set unsafe-perm true
npm rebuild node-sass
またはsudo npm install node-sass --unsafe-perm --save-dev
インストールして再起動すればOKですので、大丈夫です.nodeを更新しないでください.チームの環境が一致するようにしてください.