Home >Web Front-end >Front-end Q&A >nvm delete nodejs
NVM is a very commonly used node.js version management tool, allowing you to install multiple versions of Node.js on the same computer and easily switch between different projects.
However, sometimes you may need to completely remove Node.js and NVM from your computer. This article will show you how to remove Node.js and NVM on Mac and Windows using the command line.
Step 1: Uninstall NVM using the following command:
curl -o- https:// raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/uninstall.sh | bash
Step 2: In Mac OS, Node.js defaults to /usr/local/bin/node and / Installed in usr/local/bin/npm. Uninstall Node.js using the following command:
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm,node ,man1/node*}
Please note that this command will delete all contents of Node.js, so be sure to confirm that you want to delete it.
Step 1: In Windows, use the following command to uninstall NVM:
nvm uninstall node
Step 2: Clear NVM using the following command:
nvm clear
Step 3: Delete Node.js through the control panel, the specific steps are as follows:
1 ) Open the Windows Control Panel.
2) Select "Uninstall a program" or "Programs and Features".
3) Find Node.js in the list and click Uninstall.
Please note that this method will only remove Node.js, not NVM.
Summary
As mentioned above, removing Node.js and NVM on Mac and Windows via the command line is simple and easy. Follow the prompts to uninstall easily. If you have multiple versions of Node.js and want to use NVM to manage them, don't delete NVM, just uninstall the Node.js version you don't need.
The above is the detailed content of nvm delete nodejs. For more information, please follow other related articles on the PHP Chinese website!