egg icon indicating copy to clipboard operation
egg copied to clipboard

egg+ts 根据官网文档尝试骨架生成项目npm run start 启动访问不了

Open jiaotashidi opened this issue 7 years ago • 5 comments

根据官方快速入门提示进行操作如下

mkdir showcase && cd showcase
npm init egg --type=ts
npm i
npm run dev

npm run dev正常启动访问 npm run start启动控制台无异常 但是浏览器访问提示:Internal Server Error, real status: 500

jiaotashidi avatar Sep 04 '19 08:09 jiaotashidi

由于某些众所周知的原因无法访问,建议翻墙或访问国内镜像站点。

egg-bot avatar Sep 04 '19 08:09 egg-bot

npm run start 启动后,浏览器访问http://127.0.0.1:7001/ 提示 Internal Server Error, real status: 500

jiaotashidi avatar Sep 04 '19 08:09 jiaotashidi

由于某些众所周知的原因无法访问,建议翻墙或访问国内镜像站点。

npm run start 启动后,浏览器访问http://127.0.0.1:7001/ 提示 Internal Server Error, real status: 500

jiaotashidi avatar Sep 04 '19 08:09 jiaotashidi

用 EGG_SERVER_ENV=local npm run dev 运行,页面上会显示具体的错误信息。npm run start 会认为在生产环境,不显示具体错误信息。

https://github.com/eggjs/egg/issues/3897#issuecomment-523822567

Jeff-Tian avatar Sep 04 '19 10:09 Jeff-Tian

https://github.com/eggjs/egg-onerror/pull/30

Jeff-Tian avatar Sep 10 '19 12:09 Jeff-Tian