Uninstall node
and execute the following script in turn on the terminal
sudo npm uninstall npm -g
sudo 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
So let’s verify that one last time
node //command not found
npm //command not found
That’s it.
reference address:
https://www.jianshu.com/p/920961b6a538
Read More:
- Completely uninstall node and NPM on MAC
- Mac Windows partition merge and delete
- How to delete Microsoft AutoUpdate from Mac
- How to delete software completely on MAC
- How to open Ctrl + Alt + delete in MAC virtual machine
- The simplest way to completely unload cygwin under Windows
- Docker delete error response from daemon: Conflict: unable to delete xxxxx solution
- Error report set of unity: failed to unload “assets / animation / clips / run_ 5.anim”
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- Uncaught TypeError: Failed to execute ‘removeChild’ on ‘Node’: parameter 1 is not of type ‘Node’.
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- Matlab delete row or col to delete the row or column of the matrix
- Mac: how to show hidden files under Apple Mac operating system
- VUEJS Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of
- Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node How to Fix
- Unloading and installation of node and NPM of Vue Foundation
- The Ethereum private chain is built, and the block information cannot be synchronized. The error is resolved: Node data write error err=”state node failed with all peers(1 tries, 1 peers)
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Install and uninstall under Linux system Node.js