如何解决EACCES:权限被拒绝,取消链接'/home/runner/work/gos_front/gos_front/node_modules/.yarn-integrity
我有这个用于 github 操作的工作流.yaml:
name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: borales/actions-yarn@v2.0.0
with:
cmd: install --ignore-engines
- name: Run linters
uses: borales/actions-yarn@v2.0.0
with:
cmd: lint:prettier
- name: Run cypress
uses: cypress-io/github-action@v2
with:
build: npm run build
start: npm start
- name: Build
uses: borales/actions-yarn@v2.0.0
with:
cmd: build
然后运行,在 run cypress
上发生错误:
error 发生意外错误:“EACCES:权限被拒绝,取消链接 '/home/runner/work/gos_front/gos_front/node_modules/.yarn-integrity'"
.
在此之前我添加 cypress run
一切正常。我尝试添加 sudo
但没有帮助。我用纱线。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。