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
Let's briefly sort out the configuration of s...
Table of contents Preface Setting up with Vue CLI...
1- Styling dropdown select boxes - Modify the dro...
How to write transparent CSS for images using filt...
Table of contents Written in front router.json Ro...
The benefits of using MySQL master-slave replicat...
Table of contents 1. Component Introduction 2. So...
In the past two days, I have been very troubled t...
This article shares the specific code of Vue.js t...
The application scenario is: the iframe page has n...
Query Rewrite Plugin As of MySQL 5.7.6, MySQL Ser...
In enterprises, database high availability has al...
In the past, float was often used for layout, but...
This article uses an example to describe how to c...
Table of contents 1. Follow the wizard to create ...