使用yarn-berry时,在实现零安装时是否应该将拔出的内容应用到git存储库?
据我所知,在零安装的情况下,我们从 git 存储库yarn start收到后立即
继续。git clone
然而,由于未插入文件夹,我们yarn installs不可避免地必须继续。
当然,有多种方法可以使用 git-ignore 将 UnpluggedFolder 放入 git 存储库中,但我不确定这是否是运行零安装的正确方法。
yarnstart$ yarn start
C:\Users\com\Desktop\zero3\project\.pnp.cjs:25991
Error.captureStackTrace(firstError);
^
Error: Required unplugged package missing from disk. This may happen when switching branches without running unplugged packages must be fully materialized on disk to work).
Missing package: open@npm:8.4.0
Expected package location: C:\Users\com\Desktop\zero3\project\.yarn\unplugged\open-npm-8.4.0-df63cfe5dules\open\
Run Code Online (Sandbox Code Playgroud)
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
# testing
/coverage
# production
/build
# …Run Code Online (Sandbox Code Playgroud)