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

package and package-lock.json mismatch #379

Open
CoderOO7 opened this issue Feb 4, 2021 · 0 comments
Open

package and package-lock.json mismatch #379

CoderOO7 opened this issue Feb 4, 2021 · 0 comments

Comments

@CoderOO7
Copy link

CoderOO7 commented Feb 4, 2021

System Information

OS: Linux parrot
npm Version: 6.13.4
node Version: v8.17.0

Bug

After latest pull today got this error when I install modules using npm ci. The reason is package and package-lock.json are not sync because package-lock.json is added to .gitignore. As I know it's best practice to always commit package.json and package-lock.json both files to repo.

Error Log

error Invalid: lock file's [email protected] does not satisfy [email protected]
error Invalid: lock file's @types/[email protected] does not satisfy @types/[email protected]
error Invalid: lock file's @types/[email protected] does not satisfy @types/[email protected]
error Invalid: lock file's @types/[email protected] does not satisfy @types/[email protected]
error Invalid: lock file's [email protected] does not satisfy [email protected]

Solution

Remove package-lock.json from .gitignore file and recommit the both sync files.

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

1 participant