2016-09-09 2 views
1

React/Redux에 익숙하지 않으므로 반응을 촉진시키기 위해 react-redux-starter-kit 상용구를 사용하고 있습니다. npm run dev 지금은 잘 작동하지만되었다이 오류와 충돌한다 : 사람이 상용구 또는 오류에 익숙한react-redux-starter-kit npm run dev 크래시

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose run-script [ 'predev', 'dev', 'postdev' ] 
5 info predev [email protected] 
6 info dev [email protected] 
7 verbose unsafe-perm in lifecycle true 
8 info [email protected] Failed to exec dev script 
9 verbose stack Error: [email protected] dev: `webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors` 
9 verbose stack Exit status 1 
9 verbose stack  at EventEmitter.<anonymous> (/usr/local/lib/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> (/usr/local/lib/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 /Users/unomas/Documents/web/suited-template 
12 error Darwin 14.5.0 
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev" 
14 error node v4.5.0 
15 error npm v2.15.9 
16 error code ELIFECYCLE 
17 error [email protected] dev: `webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors` 
17 error Exit status 1 
18 error Failed at the [email protected] dev script 'webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors'. 
18 error This is most likely a problem with the express-react-redux-starter package, 
18 error not with npm itself. 
18 error Tell the author that this fails on your system: 
18 error  webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors 
18 error You can get information on how to open an issue for this project with: 
18 error  npm bugs express-react-redux-starter 
18 error Or if that isn't available, you can get their info via: 
18 error 
18 error  npm owner ls express-react-redux-starter 
18 error There is likely additional logging output above. 
19 verbose exit [ 1, true ] 

확실하지 경우

> [email protected] dev /Users/unomas/Documents/web/suited-template 
> webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors 

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

Error: listen EADDRINUSE 127.0.0.1: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 net.js:1395:9 
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:64:16) 
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:83:10) 

npm ERR! Darwin 14.5.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev" 
npm ERR! node v4.5.0 
npm ERR! npm v2.15.9 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] dev: `webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] dev script 'webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors'. 
npm ERR! This is most likely a problem with the express-react-redux-starter package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  webpack-dev-server --config ./webpack/webpack-dev.config.js --watch --colors 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs express-react-redux-starter 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR! 
npm ERR!  npm owner ls express-react-redux-starter 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/unomas/Documents/web/suited-template/npm-debug.log 

NPM-debug.log를. 해결할 수있는 방법을 알려주십시오. Thx

+0

webpack 구성 파일에서 변경된 사항이 있습니까? 아니면 그냥 소스 코드를 실행 중입니까? 어디에서 추천하는지 소스 참조 추가 – KOTIOS

+0

webpack 설정 파일이나 기타 설정을 변경하지 않았습니다. 출처 : https://github.com/davezuko/react-redux-starter-kit – vesperae

+0

whats ur npm version? – KOTIOS

답변

0

아마도 이미 다른 서버가 localhost : 3000에서 실행 중일 것입니다. 보시려면 브라우저에서 확인하십시오.

+0

http : // localhost : 3000 – vesperae

0

웹팩 구성에 지쳐있는 경우 Chalet Starter App을 사용해주세요. create-react-app과 같은 명령을 적용하여 앱을 부트 스트랩하고 폴더 구조는 react-redux-starter-kit을 기반으로합니다. 자세한 내용은 Quick Overview을 참조하십시오. 다른 질문이 있으면 환영합니다.

+0

에서 "사이트에 연결할 수 없다"는 메시지가 나타납니다. 아마도 프로젝트가 OP 문제를 해결하는 방법을 실제로 설명해야합니다. 나는 그 연결을 즉시 보지 못한다. –

+0

제안 해 주셔서 감사합니다. 나는 OP의 문제점이 반응 - 환원 - 시동 장치 - 키트 또는 표현 - 반응 - 환원 - 시동 장치로 웹팩을 구성하는 것이 어렵다고 생각했습니다. 따라서 명령 줄을 사용하면 작업량이 줄어들 수 있고 OP는 곧 키트를 사용할 수 있습니다. –

관련 문제