(节点版本为12,npm版本为6)
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
我的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"
}
}
谢谢!
答案 0 :(得分:0)
尝试localhost:3232。我在您的输出server running 3232
答案 1 :(得分:0)
我再次克隆了仓库,并修复了该问题 为所有尝试提供帮助的人欢呼:)