xieqingtian / react-build-tutorial

一步一步搭建一个react项目环境
145 stars 34 forks source link

不行。启动不了 #4

Open tikeyc opened 6 years ago

tikeyc commented 6 years ago

PC-194-iMac:application-two public1$ npm start

redux-demo@1.0.0 start /Users/public1/Desktop/HTML-Study/application-two node ./server/server.js

events.js:167 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE :::3000 at Server.setupListenHandle [as _listen2] (net.js:1330:14) at listenInCluster (net.js:1378:12) at Server.listen (net.js:1466:7) at Application.listen (/Users/public1/Desktop/HTML-Study/application-two/node_modules/koa/lib/application.js:64:19) at Object. (/Users/public1/Desktop/HTML-Study/application-two/server/server.js:47:5) at Module._compile (internal/modules/cjs/loader.js:678:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) at Function.Module._load (internal/modules/cjs/loader.js:520:3) at Function.Module.runMain (internal/modules/cjs/loader.js:719:10) at startup (internal/bootstrap/node.js:228:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:575:3) Emitted 'error' event at: at emitErrorNT (net.js:1357:8) at process._tickCallback (internal/process/next_tick.js:174:19) at Function.Module.runMain (internal/modules/cjs/loader.js:721:11) at startup (internal/bootstrap/node.js:228:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:575:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! redux-demo@1.0.0 start: node ./server/server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the redux-demo@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/public1/.npm/_logs/2018-06-01T04_09_07_213Z-debug.log