小编zhr*_*gci的帖子

术语“CI=false”未被识别为 cmdlet、函数、脚本文件或可操作程序的名称

我正在尝试 gitlab 的 CI/CD 并正在制作一个构建项目的 yml 文件。问题是我得到以下信息:

$ npm run build
 > myreactapp@0.1.0 build C:\GitLab-Runner\builds\QLuLhspz\0\I416547\s4-software-fun-frontend
 > react-scripts build
 Creating an optimized production build...
 Treating warnings as errors because process.env.CI = true.
 Most CI servers set it automatically.
 Failed to compile.
 ./src/Components/Task/TaskList.js
   Line 120:15:  'currentTasks' is assigned a value but never used                                 no-unused-vars
   Line 175:25:  Headings must have content and the content must be accessible by a screen reader  jsx-a11y/heading-has-content
 ./src/Components/House/House.js
   Line 150:16:  'Address' is assigned a value but never used …
Run Code Online (Sandbox Code Playgroud)

node.js npm reactjs gitlab-ci gitlab-ci-runner

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

gitlab-ci ×1

gitlab-ci-runner ×1

node.js ×1

npm ×1

reactjs ×1