當我在Github Actions上運行npm ci時,我得到了錯誤:
Run npm ci
npm ERR! 系結 not accessible from watchpack-chokidar2:fsevents
npm ERR! 一個完整的日志的這個運行可以在。
npm ERR! /home/runner/。 npm/_logs/20210917T15_18_42_465Z-debug.log
錯誤。行程完成,退出代碼1.。
什么可以?
我的.github/workflows/eslint.yaml
name: ESLint
on: [push, pull_request]
作業:
build:] build:
runs-on: ubuntu-latest
步驟:
- 用途: actions/checkout@v2
- name: Use Node.js
用途: actions/setup-node@v1
與:
node-version: '14.x'
- 運行: npm ci
- 運行: npm 運行 lint
我的package.json
{}。
"name": "@blinktrade/uikit",
"version": "1.0.0",
"main": "dist/index.js",
"license": "MIT",
"devDependencies": {
"@babel/plugin-transform-react-jsx": "^7.14.9",
"@babel/preset-env": "^7.15.6"、
"@babel/preset-react": "^7.14.5"、
"@babel/preset-typescript": "^7.15.0",
"@storybook/addon-essentials": "^6.3.8",
"@storybook/react": "^6.3.8"、
"@testing-library/jest-dom": "^5.14.1"、
"@testing-library/react": "^12.1.0"、
"@testing-library/user-event": "^13.2.1"、
"@types/jest": "^27.0.1"、
"@types/react": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^4.31.1",/span>
"@typescript-eslint/parser": "^4.31.1",/span>
"eslint": "^7.32.0",
"eslint-plugin-react": "^7.25.2",
"husky": "^7.0.2",
"jest": "^27.2.0",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1"、
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"typecript": "^4.4.3"
},
"husky": {
"hooks": {
"pre-push": "npm run lint",
"pre-commit": "pretty-quick -staged"
}
},
"scripts": {
"build": "tsc -p 。",
"clear": "rimraf dist/",
"format": "prettier '**/*' --write --ignore-unknown",
"lint": "eslint --max-warnings=0 。",
"storybook": "start-storybook -p 4000",
"test": "jest"
}
}
uj5u.com熱心網友回復:
解決了洗掉packages-lock.json,并使用NodeJS 14再次運行(原為10)
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/331051.html
標籤:
上一篇:Laravel友好網址而不是ID
下一篇:在解決的同時。@typegoose/[email protected]!發現:[email protected]_modulesmongoose
