You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate projects with engine-strict by default #31271
It is quite easy to install a package incompatible with the current Node runtime. NPM only emits a warning by default which is easily overlooked. Once the package is installed, running it may result in unpredictable behavior, or might even work in the short term and then suddenly fail seemingly randomly in the future due to unrelated updates or changes to executed code paths which suddenly become incompatible with the currently installed Node version.
Describe the solution you'd like
New projects should generate an .npmrc with engine-strict=true by default when using NPM as the package manager.
Following some internal discussion, we've decided not to proceed with generating an .npmrc file with engine-strict=true in new workspaces. This scenario doesn't come up frequently enough in practice to justify adding an extra configuration file to every newly generated project, which we would like to avoid.
Activity
alan-agius4 commentedon Oct 27, 2026
Following some internal discussion, we've decided not to proceed with generating an
.npmrcfile withengine-strict=truein new workspaces. This scenario doesn't come up frequently enough in practice to justify adding an extra configuration file to every newly generated project, which we would like to avoid.Closing as not planned.