问题遇到的现象和发生背景
docker jenkins 自动部署vue项目
问题相关代码,请勿粘贴截图
运行结果及报错内容
Run npm audit
for details.
- rm -rf ./dist/css ./dist/favicon.ico ./dist/index.html ./dist/js
- npm run build
default@0.1.0 build
vue-cli-service build
sh: 1: vue-cli-service: Permission denied
npm ERR! code 126
npm ERR! path /var/jenkins_home/workspace/vue_machineChange
npm ERR! command failed
npm ERR! command sh -c vue-cli-service build
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-01-11T02_06_39_208Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我的解答思路和尝试过的方法
网上说的设置chmod 777 -R ,但是马上就是出现找不到vue-cli-service.js