Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行此命令:
npm ci
它返回此错误:
npm ERR! pkg-dir not accessible from find-cache-dir
我在这里想念什么?
结果发现我的package-lock.json文件与package.json. 我跑了npm i,它重新生成了一个同步版本package-lock.json,我最终在其他环境中使用它来成功运行npm ci命令。
package-lock.json
package.json
npm i