Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save amitsinghrawat1994/a0a079ec81dfe39462c81a1dd637d77b to your computer and use it in GitHub Desktop.

Select an option

Save amitsinghrawat1994/a0a079ec81dfe39462c81a1dd637d77b to your computer and use it in GitHub Desktop.
Clean node modules reinstall in window
Ref: https://stackoverflow.com/a/68958342/7961948
deleted the node modules and package.lock.json
deleted npm and npm-cahce folder in C:\Users\user\AppData\Roaming and rebooted the PC
Then ran npm cache clean to make sure the cache was correctly cleaned.
Updated the react and react-dom version to ^17.0.0
Updated my npm version to the most recent too, perhaps this might not be a reason for the error, but i found useful to perform the update.
After that i ran:
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment