我使用此.travis.yml
文件:
cache:
directories:
- "node_modules"
git:
depth: 5
env:
- NG_CLI_ANALYTICS=false
install:
- npm ci
jobs:
include:
- stage: "ServerBuild"
name: "Build the NestJS Server"
language: node_js
node_js:
- "12"
script: npm run "build server"
- stage: "ClientBuild"
name: "Build the Angular Client"
language: node_js
node_js:
- "12"
script: npm run "build client"
虽然“ ServerBuild”阶段运行良好,但第二阶段“ ClientBuild”失败并显示错误消息:
ERROR in EACCES: permission denied, open '/home/travis/build/afluegge/haisl-manager/node_modules/@angular/core/__ivy_ngcc__/fesm5/core.js'
我在Google上搜索了很多内容,但是找不到适合这种特殊情况的答案。通常的回答被认为是设置有关文件的执行许可。但是,为什么要为一个.js文件设置执行权限呢?
知道我在做什么错吗?