0

I am using Linux mint version 19.2 and working with nodejs. But I'm facing a problem related to package-lock.json file. While initiating the npm through npm-init and installing the packagespackage-lock.json, file is not created.

I don't know why? Help me to solve this problem.

Daniel
  • 2,320
  • 1
  • 14
  • 27
  • it would be helpful to list the commands you're running. From what I remember, `npm install` would create the `package-lock.json` file and not `npm init` (which still is not `npm-init`). – azbarcea Sep 24 '19 at 11:26
  • Check nodejs version installed on the machine.[link](https://stackoverflow.com/questions/45866533/npm-install-not-creating-a-new-package-lock-json) – Mukul Dev Sep 24 '19 at 11:27
  • What exactly is your problem, if npm-init is working then all you need to do is complete the npm init prompts (The first prompt, as shown in your screen capture, asks you to enter a package name. You can just hit Enter to skip through the prompts and accept the default values if you are unsure of what information to provide) – Sachin Yadav Sep 24 '19 at 18:57

0 Answers0