1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-13 19:12:20 -05:00
denoland-deno/cli/npm/managed/resolvers
Nathan Whitaker a750314e04
fix(install): don't re-set up node_modules if running lifecycle script (#26984)
Fixes https://github.com/denoland/deno/issues/26904

If using `nodeModulesDir: "auto"`, it's possible for the lifecycle
script subprocess to try to set up the node_modules dir (despite the
fact that we're already doing that). If it does that, it hangs trying to
acquire the file lock on the node_modules dir.

As a fix, don't try to set up node_modules if we're running as part of a
lifecycle script.

Ideally we'd have better control over when we do and don't set up
node_modules automatically (that's the underlying problem behind #25782
as well)
2024-11-26 15:29:46 -08:00
..
common fix(install): don't re-set up node_modules if running lifecycle script (#26984) 2024-11-26 15:29:46 -08:00
common.rs refactor(runtime/permissions): use concrete error types (#26464) 2024-11-04 09:17:21 -08:00
global.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
local.rs fix(install): don't re-set up node_modules if running lifecycle script (#26984) 2024-11-26 15:29:46 -08:00
mod.rs refactor: move ByonmNpmResolver to deno_resolver (#25937) 2024-09-30 13:33:32 +00:00