首页 > 解决方案 > 设置时在 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

标签: reactjsnpmcircleci

解决方案


解决方案

1.npm 运行开始

2.自动添加package-lock.json(在我的情况下)

3.git推送

4.在circleci上部署成功


推荐阅读