Jenkins在H5编译加密过程中一个报错
################################
背景:开发环境在编译H5的时候出现了以下报错,记录下
################################
D:\Jenkins\workspace\stock_frontend_feature_7.03_deploy_to_132>"C:\Program Files\nodejs\npm" install --registry=https://registry.npm.taobao.org
npm WARN deprecated swig@1.4.2: This package is no longer maintained
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated core-js@1.2.7: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm ERR! code 128
npm ERR! Command failed: C:\Program Files\Git\cmd\git.EXE clone --depth=1 -q -b patch-1 git://github.com/tunnckoCore/body-parsers.git C:\Users\Administrator\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-d30b04db --config core.longpaths=true
npm ERR! warning: templates not found C:\Users\ADMINI~1\AppData\Local\Temp\2\pacote-git-template-tmp\git-clone-18733d6a
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-10-21T02_52_53_413Z-debug.log
Build step 'Execute Windows batch command' marked build as failure
Archiving artifacts
Finished: FAILURE
################
# 解决办法:更换npm源 #
################