first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# install nodejs npm
|
||||
- refer to https://segmentfault.com/a/1190000007542620
|
||||
|
||||
|
||||
|
||||
### install and update
|
||||
``` bash
|
||||
sudo apt install nodejs
|
||||
sudo apt install npm
|
||||
sudo npm install npm@latest -g
|
||||
sudo n stable
|
||||
node -v
|
||||
npm -v
|
||||
```
|
||||
|
||||
- if error: /usr/bin/env: node: No such file or directory
|
||||
|
||||
> ln -s /usr/bin/nodejs /usr/bin/node
|
||||
|
||||
- if old nodejs still exist
|
||||
|
||||
> sudo apt-get purge nodejs
|
||||
Reference in New Issue
Block a user