(具有节点版本12和npm版本6(
- 后端:Node.js
- 正面:React.js我克隆了存储库cd放入目录ran
npm install (installing dependencies etc...)
当我运行时
npm start
我得到
[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
- 看起来服务器运行正常
- 但是无法访问localhost:3000不打开任何东西第一次打开时,屏幕右侧出现了一个与节点相关的MacOS弹出窗口(我认为这是问题所在,但无法解决(
mypackage.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"
}
}
谢谢!
我再次克隆了repo,它修复了为所有试图提供帮助的人干杯:(
尝试localhost:3232。我看到你的输出server running 3232