I just installed nanoid
dependency on my react-app
using npm i nanoid
. But I want to remove it.
I tried: npm uninstall nanoid
but it doesn't remove it.
It's still inside node_modules
directory.
How can I remove it using npm
?
CodePudding user response:
Here are the steps:
- uninstall the package
- remove node modules
- npm i
CodePudding user response:
This is a workaround. delete node_modules
folder, remove nanoid
from package.json
. then init again.