使用Yarn时,可以通过指定 install.frozen-lockfile true 我知道我们可以使用命令 npm ci 在安装过程中使用锁文件来维护软件包版本,但是如何才能使npm永远不会修改锁文件(当前如果您要使用 npm install ,将修改锁文件)。
install.frozen-lockfile true
npm ci
npm install