nvm delete nodejs

WBOY
Release: 2023-05-28 12:51:09
Original
3968 people have browsed it

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.

  1. How to remove Node.js and NVM on Mac

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.

  1. How to remove Node.js and NVM in Windows

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template