Skip to content

Instantly share code, notes, and snippets.

@Dragod
Created November 8, 2021 15:06
Embed
What would you like to do?
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