前后端分离的,先打开vs,打开你的项目,在项目根目录中找到.vs文件加,
找到.vs\config\applicationhost.config,然后打开找到你项目的IIS Express配置,例如:
<site name="TestPro.Web" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\project\TestPro" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:6234:localhost" />
<binding protocol="http" bindingInformation="*:6234:192.168.2.18" />
</bindings>
</site>
添加:<binding protocol="http" bindingInformation="*:6234:192.168.2.18" />注意ip是你的本机ip。
打开VSCode,打开网站文件夹,然后
1.先安装淘宝镜像:https://npm.taobao.org/
命令:npm install -g cnpm
2.安装模块,命令:cnpm install
3.运行起来,命令:gulp serve
4.然后报错了:Error: Cannot find module 'eslint-plugin-import',怎么办?
相关文章
- Nginx 502 Bad Gateway 的错误的解决方案
- 解决Oracle ORA-01033: ORACLE initialization or shutdown in progress错误 和 ORA-01589错误 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项
- Oracle-left join两表关联只取B表匹配到的第一条记录【over partition by(分组后对组内数据排序)】
- LNMP时,出现502 Bad Gateway的错误提示
- oracle获取排序后的第一条信息
- Oracle两表关联,只取B表的第一条记录
- Binary Tree Zigzag Level Order Traversal,z字形遍历二叉树,得到每层访问的节点值。
- form:form的一点体会
- 在Java中发送http的post请求,设置请求参数等等
- PHP定时任务获取微信access_token的方法