-
Notifications
You must be signed in to change notification settings - Fork 12k
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
npm ci command fails with version 18.2.8 #28629
Comments
Looks like you are experiencing one of the |
We ran into the same issue trying to upgrade our lock files with renovate. |
This is, indeed, an So, to get a fresh
|
First we tried to switch to Angular 18.2.9 hoping that the issue would be solved there, but that didn't help. Overriding the chokidar version in package.json looks to be a good workaround:
|
This weird thing works! Many thanks for sharing. Any reasoning behind twice in a row execution? |
Pure speculation on my part (based on reading the comments in the npm issue linked above and my own observations), but for whatever confluence of reasons, when running For example a common situation is like:
When Well, again, for some reason in this situation with Angular and chokidar, both versions of the "same package" (chokidar) needed (3.6.0 and 4.0.1) are not getting installed satisfactorily for every library. In my specific testing, I found that on the first run of Why? Not sure, but it's an npm bug. 😄 |
This also worked for me. I could not imagine I needed to run |
* Fix security alert * Regenerate package-lock.json * Try to fix dependency issue on github * Trying solution of angular/angular-cli#28629 (comment)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
other
Is this a regression?
The previous version in which this bug was not present was
18.2.7
Description
Using command
npm ci
on a clean Angualr 18.2.8 project, the command fails with an error.Minimal Reproduction
npm new angular182
. Select SCSS and no SSR.cd angular182
npm ci
Exception or Error
Your Environment
Anything else relevant?
Same issue occurs after regenerating
package-lock.json
.package-lock.json
node_modules
directorynpm install
- regeneratespackage-lock.json
andnode_modules
npm ci
The text was updated successfully, but these errors were encountered: