小编Vla*_*yan的帖子

Github 的动作不是构建 React 应用程序

当我构建时 (npm run build "scripts": { "build": "react-scripts build --passWithNoTests" }

) 项目,它成功构建。但是当我推送更改时,github 上的构建过程失败

> log@0.1.0 build /home/runner/work/project/project
> react-scripts build --passWithNoTests

Creating an optimized production build...

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

Failed to compile.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! log@0.1.0 build: `react-scripts build --passWithNoTests`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the log@0.1.0 build script.
npm ERR! This is probably not …
Run Code Online (Sandbox Code Playgroud)

github node.js npm reactjs github-actions

4
推荐指数
1
解决办法
1525
查看次数

标签 统计

github ×1

github-actions ×1

node.js ×1

npm ×1

reactjs ×1