# delete the node_modules rm -rf node_modules # delete the package-lock.json or yarn.lock rm -f package-lock.json rm -f yarn.lock # clean the npm cache npm cache clean --force # Install the dependencies npm install