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
Table of contents Causes of MySQL Table Fragmenta...
Storage Engine What is a database storage engine?...
1. Preparation Middleware: Tomcat, Redis, Nginx J...
Table of contents 1. First, configure the main.js...
Recently, there is a particularly abnormal busine...
<br />Original link: http://www.dudo.org/art...
Configuring network connectivity for Linux system...
Table of contents ReactRouterV6 Changes 1. <Sw...
Use jQuery to implement form validation, for your...
A set of MySQL libraries for testing. The previou...
Table of contents Isolate Data Columns Prefix Ind...
1. Add the viewport tag to the HTML header. At th...
1. Background Use LDAP to centrally manage operat...
Chinese characters cannot be input in lower versio...
This article uses the deep learning framework ker...