I want to delete version 6.0.2.
npm list react-router-dom
zkzk1123@0.1.0 /Users/123/Desktop/
├─┬ @storybook/addon-links@6.4.8
│ └─┬ @storybook/router@6.4.8
│ └── react-router-dom@6.0.2
└── react-router-dom@5.3.0
I tried both npm uninstall react-router-dom
, npm uninstall [email protected]
but @5.3.0 is deleted but @6.0.2 is not, what should I do? I want to delete it.
CodePudding user response:
Your question is not clear. Do you want to delete a version of npm or a version of react-router-dom? To delete a version of react-router-dom, I would suggest you run ‘’’npm uninstall react-router-dom’’’ and then install the required version by running ‘’’npm i [email protected]’’’
CodePudding user response:
If you are using vscode, you can directly search your folder for the [email protected]
you should see it in a package.json file -> delete that line from the dependencies -> delete yarn.lock or npm.lock -> delete node_modules -> run npm install
or yarn
if using yarn