DEV Community

Discussion on: Have you tried switching it off and on again?

Collapse
 
kepta profile image
Kushan Joshi

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.

Collapse
 
dance2die profile image
Sung M. Kim

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. 👍