Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jiaotashidi opened this issue Sep 4, 2019 · 5 comments

Comments

@jiaotashidi
Copy link

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

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

@egg-bot
Copy link

egg-bot commented Sep 4, 2019

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

@egg-bot egg-bot closed this as completed Sep 4, 2019
@jiaotashidi
Copy link
Author

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

@jiaotashidi
Copy link
Author

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

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

@Jeff-Tian
Copy link
Contributor

Jeff-Tian commented Sep 4, 2019

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

#3897 (comment)

@Jeff-Tian
Copy link
Contributor

eggjs/egg-onerror#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants