码迷,mamicode.com
首页 > 移动开发 > 详细

使用create-react-app创建项目(一)——端口配置

时间:2019-06-26 01:05:28      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:color   amp   端口配置   bsp   文件   react   创建   test   nod   

在package.json文件中找到 "scripts",在start中添加"set PORT=8000"

 "scripts": {
    "start": "set PORT=8000 && node scripts/start.js",
    "build": "node scripts/build.js",
    "test": "node scripts/test.js"
  },

 

使用create-react-app创建项目(一)——端口配置

标签:color   amp   端口配置   bsp   文件   react   创建   test   nod   

原文地址:https://www.cnblogs.com/nailc/p/11087385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!