### 修改registry 注冊地址 (yarn同理)
```bash
npm config set registry https://registry.npmjs.org
```
### 添加淘寶鏡像
```bash
npm install -g cnpm --registry=https://registry.npm.taobao.org
```
### 查看注冊地址
```bash
npm config get registry 或 npm info express
```
### 查看依賴版本(例如:express)
```bash
npm list express
```
### 升級依賴版本(例如:express)
```bash
npm update express
```
### 搜索依賴版本(例如:express)
```bash
npm search express
```
### 升級npm(linux使用sudo)
```bash
npm install npm -g
```
### npm注冊賬戶
```bash
npm adduser
```
### npm發布模塊
```bash
npm publish
```