Started by user 测试
Running as SYSTEM
Building in workspace /root/.jenkins/workspace/dev-web-road-ui
Updating https://192.168.1.188/svn/HESHU/cloud/heshu_road/01开发区/03编码/code/01_trunk/web/road-web-admin_new at revision '2024-02-27T15:14:34.333 +0800' --quiet
Using sole credentials linfeng/****** in realm ‘<https://192.168.1.188:443> VisualSVN Server’
At revision 11796
Using sole credentials linfeng/****** in realm ‘<https://192.168.1.188:443> VisualSVN Server’
[dev-web-road-ui] $ /bin/sh -xe /tmp/jenkins6968294628882864.sh
+ cnpm install
content buffer: {"type":"Buffer","data":[]}
✖ Install fail! SyntaxError: Unexpected end of JSON input (file: /root/.jenkins/workspace/dev-web-road-ui/node_modules/.store/imurmurhash@0.1.4/node_modules/imurmurhash/package.json)
SyntaxError: Unexpected end of JSON input (file: /root/.jenkins/workspace/dev-web-road-ui/node_modules/.store/imurmurhash@0.1.4/node_modules/imurmurhash/package.json)
at JSON.parse (<anonymous>)
at Object.exports.readJSON (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/utils.js:69:17)
at async Object.exports.isInstallDone (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/utils.js:111:15)
at async download (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/download/npm.js:328:7)
at async module.exports (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/download/npm.js:24:16)
at async module.exports (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/download/index.js:19:10)
at async _install (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/install_package.js:122:16)
at async install (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/install_package.js:23:12)
at async mapper (/usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/lib/install_package.js:270:9)
npminstall version: 7.9.0
npminstall argv: /usr/data/soft/node/node-v16.15.1-linux-x64/bin/node /usr/data/soft/node/node-v16.15.1-linux-x64/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://cdn.npmmirror.com/binaries/node --registry=https://registry.npmmirror.com
Build step 'Execute shell' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE
装了ts的几个依赖就报错了,这是什么错误呢
npm cache clean --force
清一下 npm 的缓存再安装。