-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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] Broken package-lock/node_modules with missing/extraneous dependency #3267
Comments
Why are you running npm ls with a depth option at all? Due to hoisting, it’s kind of a useless argument - just run |
That means there is no problem. The validity of your dep graph is only assessable by including the entire dep graph. |
So the problem affects This is affecting every angular build since yesterday by this time. Triggering a rebuild at succeed builds also fails. Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.json': Cannot find module '@typescript-eslint/experimental-utils'
117
Require stack:
118
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js
119
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
120
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
121
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/@eslint/eslintrc/lib/config-array-factory.js
122
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/@eslint/eslintrc/lib/index.js
123
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/eslint/lib/cli-engine/cli-engine.js
124
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/eslint/lib/eslint/eslint.js
125
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/eslint/lib/eslint/index.js
126
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/eslint/lib/cli.js
127
- /home/runner/work/generator-jhipster/generator-jhipster/app/node_modules/eslint/bin/eslint.js
128
Referenced from: /home/runner/work/generator-jhipster/generator-jhipster/app/.eslintrc.json
129
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
130 |
ok - that issue (from eslint) is because |
$ npm ls --depth 10
...
├─┬ @angular-builders/[email protected]
│ ├── @angular-devkit/[email protected] deduped
│ ├── @angular-devkit/[email protected] deduped
│ ├── UNMET DEPENDENCY jest-preset-angular@^8.4.0 |
Just a follow-up, adding those dependencies as direct dependencies fix the builds jhipster/generator-jhipster#15059. |
hi @mshima is this still reproducible with the current version of the npm cli ? ( |
Is there an existing issue for this?
Current Behavior
A freshly installed package.json contains missing and extraneous dependencies.
A second
npm install
removes the extraneous dependencies, but don't add missing dependencies.Expected Behavior
No response
Steps To Reproduce
npm install
removed 3 packages, and audited 2284 packages in 3s
Environment
The text was updated successfully, but these errors were encountered: