Skip to content

TomFoyster/npm.7.20.0.bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm.7.20.0.bug

Issue

[email protected] seems to have changed the way it interacts with postinstall scripts in project workspaces.

Expected behaviour

When running npm i from the project root - the workspace/workspacePostInstall.js script, referenced as the postinstall script in the workspace package json should not be called

Current behaviour

When running npm i from the project root - the workspace/workspacePostInstall.js script, referenced as the postinstall script in the workspace package json is called. This is setup to execute a script that does not exist, and so errors.

To Replicate

Run npm install -g [email protected], and then npm i in the project root. You will not see an error.

Then, run npm install -g [email protected], and then npm i in the project root. You will now see an error - this is incorrect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published