node.js&react-服务器未启动,来自github项目
我在GitHub上找到了一个项目,想安装并使用它。首先,我尝试从windows安装它。我安装了Node.js和thread,但命令thread dev出错 我的下一步是在Ubuntu19.10中尝试它,首先我再次安装了Node.js和Thread,然后再次使用:Thread dev。我得到了一个错误,但现在是打开的站点,它不工作,只需说断开连接 我想可能是我的Node.js版本不对,尝试安装9.x版本,再次下载project并重试,没有帮助,尝试将端口从3001更改为3000,没有帮助。从他们的 暗线服务器 Darkwire server是一个需要redis的Node.js应用程序node.js&react-服务器未启动,来自github项目,node.js,github,websocket,socket.io,yarnpkg,Node.js,Github,Websocket,Socket.io,Yarnpkg,我在GitHub上找到了一个项目,想安装并使用它。首先,我尝试从windows安装它。我安装了Node.js和thread,但命令thread dev出错 我的下一步是在Ubuntu19.10中尝试它,首先我再次安装了Node.js和Thread,然后再次使用:Thread dev。我得到了一个错误,但现在是打开的站点,它不工作,只需说断开连接 我想可能是我的Node.js版本不对,尝试安装9.x版本,再次下载project并重试,没有帮助,尝试将端口从3001更改为3000,没有帮助。从他们的
因此,请安装兼容的redis服务器 谢谢!这对我有帮助!没有看到这个要求。
`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.`
```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]
```