J
J
jeruthadam2018-12-24 21:33:37
Node.js
jeruthadam, 2018-12-24 21:33:37

What is the correct way to use package-lock.json?

Everyone knows that it's a useful thing, it fixes package versions, it needs to be committed, it can't be deleted, blablabla...
Today I encountered a problem for the first time - npm installit ran with an error on the server until I deleted package-lock. All local development takes place on Ubuntu 16.04, the same Ubuntu is on the server.
What was it?
How to use it correctly, besides how to commit thoughtlessly? Does it need to be updated periodically?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question