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
we want to lock package manager in out project. so we run 'corepack enable & corepack enable npm' and add "packageManager":"[email protected]" in package.json file.
but, if some third part library has set a npm-script like: "postinstall": "npm run build", the installation will fail.
in my option, we should just lock the package manager for our own resource code. so, is there a way to exclude the 'node_modules' dir ?
The text was updated successfully, but these errors were encountered:
Generally, if a package lists npm run in its postinstall scripts, it's a real problem in the package that Corepack merely surfaces (calling the wrong package manager, even with "simple" commands like run, may not work in the best cases or silently corrupt the project in the worst).
we want to lock package manager in out project. so we run 'corepack enable & corepack enable npm' and add "packageManager":"[email protected]" in package.json file.
but, if some third part library has set a npm-script like: "postinstall": "npm run build", the installation will fail.
in my option, we should just lock the package manager for our own resource code. so, is there a way to exclude the 'node_modules' dir ?
The text was updated successfully, but these errors were encountered: