-
-
Notifications
You must be signed in to change notification settings - Fork 9
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: updating package is broken #57
Comments
To install the latest version you would need: npm install @eslint/css@latest --save-dev however that fails the same way
Workaroundnpm uninstall @eslint/css
npm install @eslint/css@latest --save-dev |
This is an error with the npm cli, not with the package itself. This happens when there's a conflict between an already-installed package's dependencies and the dependencies of a package that is attempting to be installed. That's why removing and then reinstalling fixes the problem. You can try opening a bug with npm, although they're not very responsive these days. |
Hey @nzakas, I tried reproducing the same bug using an older version ([email protected]) and I'm getting the same error. Again, these are the commands to reproduce this:
I'm getting this error after executing the last command:
|
You should report that to npm. There's nothing special about this package. |
|
I have submitted an issue to npm: |
Thanks for creating the issue @MikeMcC399 |
Environment
ESLint version:
@eslint/css version: v0.3.0
Node version: v22.14.0
npm version: v11.1.0
Operating System: linux 5.15.167.4-microsoft-standard-WSL2
Which language are you using?
rule
What did you do?
$ cat package.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"devDependencies": {
"@eslint/css": "^0.3.0"
}
}
$ npm install @eslint/css --save-dev
added 12 packages, and audited 14 packages in 2s
found 0 vulnerabilities
$ npm install @eslint/css --save-dev
npm error Cannot destructure property 'package' of 'node.target' as it is null.
npm error A complete log of this run can be found in: /home/dhtzs/.npm/_logs/2025-02-19T23_35_13_864Z-debug-0.log
What did you expect to happen?
Expected to install the latest version of @eslint/css.
What actually happened?
Got an error
Link to Minimal Reproducible Example
Participation
Additional comments
2025-02-19T23_36_53_562Z-debug-0.log
The text was updated successfully, but these errors were encountered: