first commit

This commit is contained in:
light
2017-05-19 11:14:30 +08:00
parent d194b5f2eb
commit e1865a5782
14 changed files with 1335 additions and 1 deletions
+22
View File
@@ -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