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
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
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 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.
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. 👍