Skip to content
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]: "WARN reify invalid or damaged lockfile detected" #501

Closed
jnoga opened this issue Feb 2, 2023 · 6 comments
Closed

[npm]: "WARN reify invalid or damaged lockfile detected" #501

jnoga opened this issue Feb 2, 2023 · 6 comments

Comments

@jnoga
Copy link

jnoga commented Feb 2, 2023

Hi!

I've been using this package for a while, and it seems that something is wrong with the package-lock file since Node 16.15.1 version (NPM 8.5.5). When installing the package with, at least, that version of NPM I get this message:

npm WARN reify invalid or damaged lockfile detected
npm WARN reify please re-try this operation once it completes
npm WARN reify so that the damage can be corrected, or perform
npm WARN reify a fresh install with no lockfile if the problem persists.

And after this if I try no make a clean install with npm ci I get a fatal error:

npm ERR! code EUSAGE
npm ERR! 
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Missing: @linthtml/linthtml@ from lock file
npm ERR!

Steps to reproduce the bug

Before trying to reproduce the bug please make sure you have, at least, the 16.5.1 version of NodeJS installed.

  1. Create an empty folder, init npm there with npm init and change move there.
  2. Install the package npm i --save-dev @linthtml/linthtml
  3. Try to make a clean install with npm ci

Environments

I have reproduced the bug in MacOS and Debian environments.

Any clue to resolve this issue will be really appreciated, thanks in advance

@KamiKillertO
Copy link
Collaborator

@jnoga Thanks for reporting, I'll have a look

@jnoga
Copy link
Author

jnoga commented Mar 28, 2023

Just an appointment, it seems that the reason of the error are these deleted lines in the package-lock file:

"@linthtml/linthtml": {
"dev": true,
"peer": true
},

and

"node_modules/@linthtml/linthtml/node_modules/@linthtml/linthtml": {
"dev": true,
"peer": true
},

Hope it helps

@KamiKillertO
Copy link
Collaborator

Sorry for the late answer.
Looks like the problem is caused by the fact that @linthtml/linthtml is a peer deps of @linthtml/cli and that @linthtml/cli is a dep of @linthtml/linthtml.
Looks like I missed something when I made the split in monorepo.

I have a fix ready. I am going to released it as soon as possible

@KamiKillertO
Copy link
Collaborator

@jnoga I have just release a new version that fix fix issue

@jnoga
Copy link
Author

jnoga commented Jun 2, 2023

Thank you very much! I will test It as soon as possible to clóse the issue

@jnoga
Copy link
Author

jnoga commented Jun 5, 2023

Closing, thanks again!

@jnoga jnoga closed this as completed Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants