clean node module code example
Example 1: remove node modules command
rm -rf node_modules/
npm install
Example 2: ignore node modules
//create a .gitignore file and add the following in it
# dependencies
node_modules
rm -rf node_modules/
npm install
//create a .gitignore file and add the following in it
# dependencies
node_modules