reactjs - 设置时在 circle-cl 上计算缓存键时出错
问题描述
情况
我开始 React 项目并将默认项目推送到 git 远程并连接到 circle-cl 并设置并添加配置,但问题出现了。我不知道如何处理这种情况。
恢复缓存
error computing cache key: template: cacheKey:1:30: executing "cacheKey" at <checksum "~/project/package-lock.json">: error calling checksum: open /home/circleci/project/package-lock.json: no such file or directory
安装 Npm 包
npm ERR! cipm can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or later to generate it, then try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/circleci/.npm/_logs/2020-10-12T03_01_22_810Z-debug.log
Exited with code exit status 1
CircleCI received exit code 1
解决方案
解决方案
1.npm 运行开始
2.自动添加package-lock.json(在我的情况下)
3.git推送
4.在circleci上部署成功
推荐阅读
- php - 插入选择并声明其他列值
- reactjs - 如何在反应映射循环中定位特定元素
- ruby-on-rails - 带有附加表单字段的 Rails CSV 导入
- python - 在python中使用多处理返回值
- python - 自定义python包模块中没有功能
- javascript - 如何使用键过滤出对象数组
- elasticsearch - 如何使用 NEST 和 Elastic Search 从查询中获取字段值
- python - 如何在pyspark中为中值、均值和标准创建新列?
- python - 使用正则表达式在 python 中的 URL 中清除 .com、.org 等之后的值
- r - Roxygen2 多个功能在一个文件中,在使用中有一些隐藏功能(使用 Roxygen2)