docekr sometings updates

This commit is contained in:
light
2018-03-05 14:52:48 +08:00
parent 6360db8133
commit 83a718842a
3 changed files with 39 additions and 5 deletions
+7 -1
View File
@@ -9,9 +9,15 @@ sudo apt install nodejs
sudo apt install npm
sudo npm install n@latest -g
sudo n stable
npm install npm@latest -g
sudo npm install npm@latest -g
node -v
npm -v
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
#or
npm config set registry https://registry.npm.taobao.org
npm config get registry
```
- if error: /usr/bin/env: node: No such file or directory