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 (将#修改为@)