-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm install <local folder> does not run postinstall #4804
Comments
@oshi97 I'm unable to reporoduce this issue. In my case test.txt file gets created. Please share more details / anything I'm missing to reproduce this issue. |
It could be your npm version? |
I've noticed that |
We're seeing the same issue on node 16.15.0 with npm 8.5.5. It worked previously on node 16.14.2 with npm 8.5.0. |
Same here. The setup is with NPM workspaces, where one of the workspace is a dependency of another and it contains a Updating |
I also encountered a similar problem. node: 16.15.0 When switching to version 14, it works normally. |
I have encountered the same issue on Windows 10 Pro with node 16.15.0 and npm 8.5.5. I thought I have done anything wrong with my package.json until I have searched this behavior as an issue. |
This issue is still present in node v19.9.0 (npm v9.6.3) I can only get the postinstall script to run by reverting to an earlier version of node. |
For reasons unknown to me, `npm install <path>` will not trigger postinstall scripts [1]. [1] npm/cli#4804
For reasons unknown to me, `npm install <path>` will not trigger postinstall scripts [1]. [1] npm/cli#4804
For reasons unknown to me, `npm install <path>` will not trigger postinstall scripts [1]. [1] npm/cli#4804
For reasons unknown to me, `npm install <path>` will not trigger postinstall scripts [1]. [1] npm/cli#4804
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Installing a local npm package does not run the postinstall script.
Expected Behavior
The postinstall script runs, and in this case creates a new file
Steps To Reproduce
git clone https://github.com/oshi97/install-links.git
git checkout postinstall
cd parent
npm i ../child
Environment
The text was updated successfully, but these errors were encountered: