docker - bin/sh: 1: webpack: 未找到
问题描述
我正在尝试将赛普拉斯测试添加到 CircleCI 管道。所以我在config.yml文件中使用了Cypress docker 镜像:
docker:
- image: cypress/base:12
提交并触发 CircleCI 构建时,赛普拉斯测试成功运行。但是yarn build
执行NODE_ENV=production webpack
将失败并出现以下错误:
yarn run v1.22.4
$ NODE_ENV=production webpack
/bin/sh: 1: webpack: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Exited with code exit status 127
CircleCI received exit code 127
webpack 和 webpack 相关的包在本地安装为 devDependencies。
提前致谢。
解决方案
推荐阅读
- azure-active-directory - 仅来自逻辑应用连接器的 Azure AD 条件访问
- javascript - 无法使用 Exif 读取元数据字段
- javascript - 条纹浏览器兼容
- javascript - 当我运行 vue-cli -service build -mode test 时出现错误。未定义进程。但是使用 vue-cli -service build 不会报这个错误
- typo3 - 如何为 TYPO3 站点创建级联页面错误处理程序
- azure - 从http重定向到https、nginx
- sql - Transpose rows into columns in SQL Server, I try it using pivot but, expected result is not reached
- validation - 在 Google Sheet 中查询结果的每一行之后添加一个下拉菜单(数据验证)
- c - 如何检查变量有效性以及如何将结构数组发送到函数?
- flutter - Flutter Dart Dio Get Request 太慢了