![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node
文章平均质量分 74
fg_411
菜鸟码农
展开
-
node实现反向代理
公司在做银行项目,开发都在云桌面。不能直接访问服务器上的接口服务,但是可以连接到云桌面,所以搭建个代理之后就可以愉快的在本地开发啦 安装http-proxy模块 >npm install http-proxy --save-dev 新建js文件 // server.js const http = require('http'); const httpProxy = require('htt...原创 2019-11-18 17:28:22 · 332 阅读 · 0 评论 -
npm 的常用方法(备忘录)
npm常用命令 npm init 查看当前版本 npm -v 设置国内镜像(具体原因就不必多说了) 两种办法: 一、直接修改镜像地址 npm config set key value 命令,设置指定的镜像地址 npm config set registry https://registry.npm.taobao.org 二、用封装好的 cnpm 命令 安装 cnpm ...原创 2018-02-24 14:29:45 · 229 阅读 · 1 评论