Consider this scenario:
I installed some packages like jquery and bootstrap with npm install
.
After this npp make a package-lock.json
file that describes installed package info.
When I push folder project to git server node_modules folder wasn't sent because of gitignore and only json file is placed on server.
If someone clone this repo he only has json file. How we can restore or reinstall all dependencies from package-lock.json file?
I tried npm install
, npm ci
, npm i
but nothing restored.
Any idea?