diff --git a/packages/yarnpkg-pnp/sources/loader/_entryPoint.ts b/packages/yarnpkg-pnp/sources/loader/_entryPoint.ts index b94ec508ee88..b200410dc8c9 100644 --- a/packages/yarnpkg-pnp/sources/loader/_entryPoint.ts +++ b/packages/yarnpkg-pnp/sources/loader/_entryPoint.ts @@ -22,7 +22,7 @@ const nodeFs = new NodeFS(localFs); const defaultRuntimeState = $$SETUP_STATE(hydrateRuntimeState); const defaultPnpapiResolution = path.resolve(__dirname, __filename); -let defaultFsLayer: FakeFS = new ZipOpenFS({baseFs: nodeFs}); +let defaultFsLayer: FakeFS = new ZipOpenFS({baseFs: nodeFs, readOnlyArchives: true}); for (const virtualRoot of defaultRuntimeState.virtualRoots) defaultFsLayer = new VirtualFS(virtualRoot, {baseFs: defaultFsLayer});