First, say unloading
1. Uninstall NPM first
Sudo NPM uninstall NPM -g
2. Remove node
Yum remove nodejs NPM -y
See if there’s any residue
Go to /usr/local/lib and delete all nodes and node_modules folders
Go to /usr/local/include and delete all nodes and node_modules
Go to /usr/local/bin and delete the node’s executable
Two, again install
1. Go to the Node.js website and download the Linux zip package, put it in your own directory, and then unzip it.
2. After unzipping, it’s time to configure the environment variables.
2.1. Establish soft links first. What does soft links mean?Stick a picture
Delete the node and NPM in /usr/lcoal/bin if any of the following problems occur in the resume soft link
3. Change the configuration file to /etc/profile
3.1. Modify the content
Almost like this, the beginning of their own also more chaotic.
1. Uninstall NPM first
Sudo NPM uninstall NPM -g
2. Remove node
Yum remove nodejs NPM -y
See if there’s any residue
Go to /usr/local/lib and delete all nodes and node_modules folders
Go to /usr/local/include and delete all nodes and node_modules
Go to /usr/local/bin and delete the node’s executable
Two, again install
1. Go to the Node.js website and download the Linux zip package, put it in your own directory, and then unzip it.
2. After unzipping, it’s time to configure the environment variables.
2.1. Establish soft links first. What does soft links mean?Stick a picture
Delete the node and NPM in /usr/lcoal/bin if any of the following problems occur in the resume soft link
3. Change the configuration file to /etc/profile
3.1. Modify the content
Almost like this, the beginning of their own also more chaotic.
Read More:
- Completely uninstall node and NPM on MAC
- Node.js Using port 80 to report errors in Linux
- Events.js:167 throw er appears when starting node service under linux; // Unhandled ‘error’ event solution
- Uninstall Windows computer software, so that the uninstall is clean
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- Error: no such keg: / usr / local / cellular / node & install NVM & Brew install & oh my Zsh. Git install & git set alias & no bundle URL press
- ERROR in ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./src/css/spec
- Node.js Cannot find module ‘mysql’ ‘express’
- Error messages of copying files to Linux system by PSCP in Windows operating system
- Debugging with chrome Node.js
- NPM and Node.js Version incompatibility
- Error 2052/2053 when installing node.js in win
- 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:
- node.js Cannot find module “XXX” solution
- Copy node causes NPM execution error: cannot find module ‘/ / lib / utils/ unsupported.js ‘
- node.js Server MySQL database connection timeout (error: connect etimeout)
- Installing zookeeper under Linux system
- Node.js Error: cannot find module ‘xxx’
- Module build failed (from ./node_modules/postcss-loader/src/index.js):
- Solutions for failure to start Axure RP (including failure to uninstall or install. Net framework)