[英]Can you simulate a situation when npm ci occurs an error?
npm i
can alter package.json even if a package-lock.json
exists, which is usually unexpected in contexts like CI (when running on build servers). Something else that can alter package.json is devs who go in and edit dependencies manually and don't remember to npm i
to get a new package-lock.json afterwards, or who are on mismatched versions of the lockfile format (npm 7 vs npm 5/6)。 所有这些都会导致npm ci
错误,这是一种有用的行为,因为这样您就知道需要对哪些同事进行错误处理才能更改他们的工作流程/更新他们的工具。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.