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 你可以创建一个带有“package-lock=false”的 .npmrc 文件 Yarn 有类似的东西吗?
您可以在安装纱线时使用它
yarn install --no-lockfile
这意味着 yarn 不会读取或生成 yarn.lock 锁定文件。
您还可以使用:
yarn install --pure-lockfile
这意味着 yarn 不会生成 yarn.lock 锁定文件。
yarn install --frozen-lockfile
如果需要更新,请不要生成 yarn.lock 锁定文件并失败。