npm uninstallsudo npm uninstall npm -g If you encounter this sentence and cannot uninstall npm, don't worry, the blogger has other ways, hahaha, then read on. First, we need to enter the folder where npm is located. cd /usr/local/lib/node_modules/npm Next we execute it under the npm file sudo make uninstall Next, if we see this interface, it means that we have successfully uninstalled Test with Node.js uninstallsudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* sudo rm -rf /usr/local/include/node /Users/$USER/.npm sudo rm /usr/local/bin/node sudo rm /usr/local/share/man/man1/node.1 sudo rm /usr/local/lib/dtrace/node.d Verify success If you have executed the above code in order, we need to verify whether we have deleted it successfully. If the following result appears, it means that we have deleted it successfully. The same verification method, nodejs npm reinstallRe-download from the official websitehttps://nodejs.org/en/download/current/ References: How to uninstall node on Mac: https://zhuanlan.zhihu.com/p/41795892 The above is the details of completely uninstalling node and npm and reinstalling them on Python programming mac. For more information about completely uninstalling node and reinstalling npm on mac, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Use of Linux ifconfig command
>>: Solution to the Chinese garbled code problem in the decompressed version of MYSQL
After going through a lot of hardships, I searched...
Table of contents 1. Get the file extension 2. Co...
MySQL deduplication methods 【Beginner】There are v...
There is a table user, and the fields are id, nic...
The implementation principle of chain programming...
Nginx load balancing server: IP: 192.168.0.4 (Ngi...
Execute the command to install the plugin postcss...
1. Introduction Some time ago, there were a serie...
In MySQL, fields of char, varchar, and text types...
This article example shares the specific code of ...
Have you ever encountered a situation where we hav...
The default operating mode of MySQL is autocommit...
1. Cause The requirement is to display two lines,...
Table of contents Port-related concepts: Relation...
The <link> tag defines the relationship bet...