Related to the original response, npm 6 now allows you to run npm ci Which deletes the node_modules and installs the exact version mentioned in your lock file. This is a great way to reproduce the exact working copy of your node app.
npm ci
Thanks for the tip Kushan.
Even this morning, I've deleted node_modules folder manually... npm ci seems like a great addition to the CLI. 👍
node_modules
We're a place where coders share, stay up-to-date and grow their careers.
Related to the original response, npm 6 now allows you to run
npm ciWhich deletes the node_modules and installs the exact version mentioned in your lock file. This is a great way to reproduce the exact working copy of your node app.
Thanks for the tip Kushan.
Even this morning, I've deleted
node_modulesfolder manually...npm ciseems like a great addition to the CLI. 👍