-
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] install script does not run in workspace in 8.5.4 #4552
Comments
In order to work around [a bug in NPM 8.5.4 and above][bug], where lifecycle hooks are not executed for the workspace packages, use NPM 8.5.3 for every Node version for now. This is a redo of [#629][pr]. [bug]: npm/cli#4552 [pr]: #629
In order to work around [a bug in NPM 8.5.4 and above][bug], where lifecycle hooks are not executed for the workspace packages, use NPM 8.5.3 for every Node version for now. This is a redo of [#629][pr]. [bug]: npm/cli#4552 [pr]: #629
+1 I have a repro here: https://github.com/n8agrin/npm-8.5.4-no-lifecycle-scripts It seems all lifecycle scripts in workspaces do not run in npm versions after 8.5.3 |
In order to work around [a bug in NPM 8.5.4 and above][bug], where lifecycle hooks are not executed for the workspace packages, use NPM 8.5.3 for every Node version for now. This is a redo of [#629][pr]. [bug]: npm/cli#4552 [pr]: #629
This also seems to happen if you don't use a workspace, but instead use a
When running |
Issue is still present in npm 8.9.0. |
- Fixes running proper lifecycle scripts for linked deps and workspaces. - Added test to validate lifecycle scripts don't run twice for linked deps - Tweaked "reify workspaces bin files" test to also validate proper lifecycle scripts ran before check for linked bins. - Tweaked reify test running lifecycle scripts of unchanged link nodes to also validate that the install lifecycle scripts are also called. Fixes: npm#4277 Fixes: npm#4552 Fixes: npm/statusboard#439 Relates to: npm#2905
- Fixes running proper lifecycle scripts for linked deps and workspaces. - Added test to validate lifecycle scripts don't run twice for linked deps - Tweaked "reify workspaces bin files" test to also validate proper lifecycle scripts ran before check for linked bins. - Tweaked reify test running lifecycle scripts of unchanged link nodes to also validate that the install lifecycle scripts are also called. Fixes: npm#4277 Fixes: npm#4552 Fixes: npm/statusboard#439 Relates to: npm#2905
- Fixes running proper lifecycle scripts for linked deps and workspaces. - Added test to validate lifecycle scripts don't run twice for linked deps - Tweaked "reify workspaces bin files" test to also validate proper lifecycle scripts ran before check for linked bins. - Tweaked reify test running lifecycle scripts of unchanged link nodes to also validate that the install lifecycle scripts are also called. Fixes: #4277 Fixes: #4552 Fixes: npm/statusboard#439 Relates to: #2905
should be fixed in |
Using npm version 7 seems to avoid a bug where the build for the `@appsignal/nodejs` package is not ran before `npm install`, causing the installation to fail as it depends on the Transmitter, which needs to be transpiled first. The bug seems similar to [npm/cli#4552][bug], although that seems to be fixed in npm 8.10.0, and upgrading to that version did not fix the problem. I have been unable to reproduce the bug outside of Semaphore CI, which further complicates investigating it.
Using npm version 7 seems to avoid a bug where the build for the `@appsignal/nodejs` package is not ran before `npm install`, causing the installation to fail as it depends on the Transmitter, which needs to be transpiled first. The bug seems similar to [npm/cli#4552][bug], although that seems to be fixed in npm 8.10.0, and upgrading to that version did not fix the problem. I have been unable to reproduce the bug outside of Semaphore CI, which further complicates investigating it.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Given the following:
Running
npm install
will not generate aninstall
file inside thesubpackage
directory.Expected Behavior
In
8.5.3
it would run theinstall
script inside the workspaces as wellProbably introduced by #4529
Steps To Reproduce
No response
Environment
The text was updated successfully, but these errors were encountered: