2017-09-08 51 views
0

我做的一個項目,與我以前的樣板有問題,所以我試圖用另一個。 我發現this one在github上非常相似,似乎是基本的。 我克隆它,我拼命地跑NPM安裝,但是當我運行服務器我得到這個錯誤訊息回來,我對如何解決它不知道。 這是非常相似,我與我以前的樣板消息。不能建立一個陣營 - 終極版樣板

$ npm run webserver 

> [email protected] webserver C:\Users\qwepo\Desktop\RRWeather 
> node api/src/server.js 

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

Error: listen EADDRINUSE :::3000 
    at Object.exports._errnoException (util.js:907:11) 
    at exports._exceptionWithHostPort (util.js:930:20) 
    at Server._listen2 (net.js:1250:14) 
    at listen (net.js:1286:10) 
    at Server.listen (net.js:1382:5) 
    at Application.app.listen (C:\Users\qwepo\Desktop\RRWeather\node_modules\koa\lib\application.js:74:24) 
    at Object.<anonymous> (C:\Users\qwepo\Desktop\RRWeather\api\src\server.js:8:5) 
    at Module._compile (module.js:409:26) 
    at Object.Module._extensions..js (module.js:416:10) 
    at Module.load (module.js:343:32) 

npm ERR! Windows_NT 10.0.15063 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "webserver" 
npm ERR! node v4.6.0 
npm ERR! npm v2.15.9 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] webserver: `node api/src/server.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] webserver script 'node api/src/server.js'. 
npm ERR! This is most likely a problem with the boilerplate-koa-redux-react package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node api/src/server.js 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs boilerplate-koa-redux-react 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR! 
npm ERR!  npm owner ls boilerplate-koa-redux-react 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\qwepo\Desktop\RRWeather\npm-debug.log 

這是NPM-文件的debug.log

0 info it worked if it ends with ok 
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 
1 verbose cli 'run', 
1 verbose cli 'webserver' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'prewebserver', 'webserver', 'postwebserver' ] 
5 info prewebserver [email protected] 
6 info webserver [email protected] 
7 verbose unsafe-perm in lifecycle true 
8 info [email protected] Failed to exec webserver script 
9 verbose stack Error: [email protected] webserver: `node api/src/server.js` 
9 verbose stack Exit status 1 
9 verbose stack  at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:217:16) 
9 verbose stack  at emitTwo (events.js:87:13) 
9 verbose stack  at EventEmitter.emit (events.js:172:7) 
9 verbose stack  at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14) 
9 verbose stack  at emitTwo (events.js:87:13) 
9 verbose stack  at ChildProcess.emit (events.js:172:7) 
9 verbose stack  at maybeClose (internal/child_process.js:829:16) 
9 verbose stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 
10 verbose pkgid [email protected] 
11 verbose cwd C:\Users\qwepo\Desktop\RRWeather 
12 error Windows_NT 10.0.15063 
13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "webserver" 
14 error node v4.6.0 
15 error npm v2.15.9 
16 error code ELIFECYCLE 
17 error [email protected] webserver: `node api/src/server.js` 
17 error Exit status 1 
18 error Failed at the [email protected] webserver script 'node api/src/server.js'. 
18 error This is most likely a problem with the boilerplate-koa-redux-react package, 
18 error not with npm itself. 
18 error Tell the author that this fails on your system: 
18 error  node api/src/server.js 
18 error You can get information on how to open an issue for this project with: 
18 error  npm bugs boilerplate-koa-redux-react 
18 error Or if that isn't available, you can get their info via: 
18 error 
18 error  npm owner ls boilerplate-koa-redux-react 
18 error There is likely additional logging output above. 
19 verbose exit [ 1, true ] 

我怎樣才能解決這個問題,爲什麼我有這個問題?

+0

端口3000已在使用中,請確保停止您在此端口上運行的任何應用程序,或者更改其中一些應用程序啓動的端口 –

+0

以下是線索錯誤:listen EADDRINUSE :: :3000' –

+0

更改端口給其他人提供了一個錯誤代碼ELIFECYCLE。 – Peter

回答

0

Error: listen EADDRINUSE :::3000東西是該端口上已經運行。檢查它是什麼並殺死進程。我不使用窗戶,但有很多solutions in google

+0

我在W10上,看起來這個過程沒有找到。 – Peter