-1

which files are created/modified when I do npm install in an angular project? (in my case angular 8) do package.lock.json also along with node modules needs to be deleted when Ι update something in package.json , will npm install create package.lock.json on it's own like node modules. Τhanks.

Giannis
  • 1,790
  • 1
  • 11
  • 29
  • 1
    Kindly go through the beginner's guide of asking a question on this stackoverflow https://stackoverflow.com/help/how-to-ask .It is always helpful for the others who are reading your question. – Kamal Aujla Jan 15 '21 at 07:17

1 Answers1

0

package-lock.json is updated with every normal npm install to constantly reflect the packages that were used on the last build. To use exactly the versions pinned in package-lock.json , one needs to use the command

npm ci

Try refering to this link What is the role of the package-lock.json? for more detailed discussion regarding this. Try to search your doubts first you may find similar questions already answered.

Kamal Aujla
  • 327
  • 2
  • 10