node.js & react - 服务器未启动,来自 github 项目

node.js & react - server not up, from github project

我在 GitHub darkwire 上找到了一个项目,想安装并使用它。首先,我尝试从 windows 安装它。我安装了 Node.js 和 Yarn,我在使用命令时遇到错误:yarn dev

`C:\darkwire.io-master>yarn dev
yarn run v1.21.1
$ concurrently 'cd client && yarn start' 'cd server && yarn dev'
[0] 'c' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'client' is not recognized as an internal or external command,
[1] operable program or batch file.
[0] c exited with code 1
[1] client exited with code 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`

我的下一步是在 ubuntu 19.10 中尝试,首先我再次安装 Node.js 和 Yarn,然后再次使用:yarn dev。我得到一个错误,但现在是开放的网站,它不工作,只是说 "Disconnected"

```qq@ubuntu:~/Downloads/darkwire.io-master$ yarn dev
yarn run v1.21.1
$ concurrently 'cd client && yarn start' 'cd server && yarn dev'
$ nodemon src/index.js --exec babel-node
$ react-scripts start
[1] [nodemon] 1.19.0
[1] [nodemon] to restart at any time, enter `rs`
[1] [nodemon] watching: *.*
[1] [nodemon] starting `babel-node src/index.js`
[1] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
[1] Checking for inactive rooms...
[1] Darkwire is online at port 3001
[1] events.js:183
[1]       throw er; // Unhandled 'error' event
[1]       ^
[1] 
[1] Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
[1]     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[1] [nodemon] app crashed - waiting for file changes before starting...
[0] Starting the development server...
[0] 
[0] Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
[0] Compiled successfully!
[0] 
[0] You can now view darkwire-client in the browser.
[0] 
[0]   Local:            http://localhost:3000/
[0]   On Your Network:  http://175.124.13.111:3000/
[0] 
[0] Note that the development build is not optimized.
[0] To create a production build, use yarn build.
[0]
```

screenshot

我想我的版本可能不对 Node.js 并尝试安装 9.x 版本,重新下载项目并重试,它没有帮助,尝试将端口从 3001 更改为 3000,没有帮助。

来自他们的README.md

Darkwire Server Darkwire server is a Node.js application that requires redis.

所以请安装兼容的redis服务器。 Redis tutorial