. Advertisement .
..3..
. Advertisement .
..4..
As advised, I used some code samples in another forum, but it could not improve the problem. My question is the “npm notice created a lockfile as package-lock.json. you should commit this file.” in programs – How to solve it? The command line is:
npm install express
and the result:
npm notice created a lockfile as package-lock.json. You should commit this file.
What does the message mean? Can you advise me to fix it? If you have other better answers, leave them in the answer box below.
The cause: Instead of creating a new package-lock.json file, you can update the existing one.
The solution: You can fix this problem by changing the version number to a different one.
Yes. This file should be added to your version control system (i.e. It should be committed.
has more information about it/its functions.