1.登录码云,找到request-promise
```
https://github.com/request/request-promise
```
2.找到安装方法
```
npm install --save request
npm install --save request-promise
```
![](https://box.kancloud.cn/50240291701681f73b9a7a6bf90af69f_951x266.png)
3.点击“在终端打开”,输入上面两条指令
![](https://box.kancloud.cn/ce9fd05f2322f15143388f3a898d9d8f_1594x738.png)![](https://box.kancloud.cn/5516cb307c456a1ddb654bc7681e37d9_809x328.png)
4.引用
![](https://box.kancloud.cn/f14cd4deea7d85656418f5f4921e84ce_1521x625.png)