When you install the npm package on your Linux and Windows system by default the package-lock.json file is generated any operations where npm modifies either the node_modules packages or package.json. Using the command execute the npm packages,
npm install
If you would like to disable the .lock file just add the line in .npmrc
vim .npmrc
## Disable package-lock.json file
package-lock=false
Also, you can create a lockfile with an option --package-lock-only, use the command below
npm install --package-lock-only
Another option is, --package-lock,
npm install --package-lock
Comments (0)