Skip to content

Instantly share code, notes, and snippets.

@Dragod
Created November 8, 2021 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/7b12af5046f03368fecaeded7f12b206 to your computer and use it in GitHub Desktop.
Save Dragod/7b12af5046f03368fecaeded7f12b206 to your computer and use it in GitHub Desktop.
Solve package-lock.json problems
{
"scripts": {
"clean": "rm -Rf node_modules/ && rm -f ./package-lock.json && npm cache clean -f",
"clean_windows": "IF EXIST node_modules rd /s /q node_modules && IF EXIST package-lock.json DEL package-lock.json && npm cache clean -f",
"rebuild": "npm run clean && npm i",
"rebuild_windows": "npm run clean_windows && npm i"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment