错误:
Run npm ci
npm ERR! Cannot read property @testing-library/jest-dom of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-06-09T17_12_13_249Z-debug.log
错误: Process completed with exit code 1.
工作流程:
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
名录结构:
我检查了JSON档案的道路,检查了JSON,并修改了我的项目结构。 没有工作。 我感谢这一帮助。 我一直试图将其固定下来两天。