[英]Node & React - npm start - is running BUT localhost:3000 “cant be reached”
(having node version 12 and npm version 6) (具有节点版本 12 和 npm 版本 6)
npm install (installing dependencies etc...)
and when i ran当我跑
npm start
and i get我明白了
[Ben@Mac:~/Desktop/test]$ npm start
> answers-entry-level-exam@1.0.0 start /Users/Ben/Desktop/test
> lerna run start --parallel
lerna notice cli v3.22.1
lerna info Executing command in 1 package: "npm run start"
@ans-exam/server: > @ans-exam/server@1.0.0 start
/Users/Ben/Desktop/test/server
@ans-exam/server: > ts-node-dev index.ts
@ans-exam/server: Using ts-node version 8.5.2, typescript version 3.7.2
@ans-exam/server: server running 3232
my package.json:我的 package.json:
{
"name": "answers-entry-level-exam",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"b": "npm run bootstrap",
"bootstrap": "lerna bootstrap",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "lerna run start --parallel",
"postinstall": "npm run bootstrap"
},
"author": "",
"license": "ISC",
"devDependencies": {
"lerna": "^3.22.1"
}
}
Thanks!谢谢!
Try localhost:3232.尝试本地主机:3232。 I see in your output
server running 3232
我在你的输出
server running 3232
看到server running 3232
我再次克隆了 repo 并修复了对所有试图提供帮助的人的干杯 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.