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
- Unloading and installation of node and NPM of Vue Foundation
- Local workspace file (‘angular.json’) could not be found.
- Install and uninstall under Linux system Node.js
- Installing and uninstalling nodejs in Linux
- Error: EPERM: operation not permitted, mkdir ‘D:\nodejs\node_modules\npm\node_cache\_npx‘
- Using NPM to install Remix error in Windows 10
- Node.js Cannot find module ‘mysql’ ‘express’
- NPM install error | gyp err! Configure error
- React create project error
- The version number of robot JS running by electron does not match
- NPM and cnpm installation failure solution
- “NPM err! Error: eperm: operation not permitted” problem solving
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- Node configuration environment variable and global installation of webapck
- When NPM install, make: G + +: command not found will be prompted
- NPM installs dependent packages and reports an error node gyp rebuild… Solution
- mac Error: EACCES: permission denied, mkdir ‘./cache’
- [solution] MAC: stack error: ` gyp ‘failed with exit code:1
- Some mistakes in using NPM