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
I'm using a placeholder in a text input and i...
The EXPLAIN statement provides information about ...
What to do if you forget your Linux/Mac MySQL pas...
This article shares the specific code of jQuery t...
This article shares the installation tutorial of ...
1. Record several methods of centering the box: 1...
This article uses examples to illustrate the simp...
Preface We all know that MySQL query uses the sel...
Recently, I received a requirement for function ex...
The World Wide Web Consortium (W3C) has released a...
Table of contents Introduction to the Decorator P...
Table of contents Modify the repository source st...
Summary: Problem solving records of MYSQL: No mat...
1. Linux network configuration Before configuring...
This article shares the specific code of JavaScri...