๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ‘ฉ‍๐Ÿ’ป ๊ฐœ๋ฐœ ๊ณต๋ถ€

[React] npm ERR! code ELIFECYCLE errno 1

728x90

npm start ๋‘ ๋ฒˆ ์ž…๋ ฅํ•ด์„œ ๋‚˜์˜จ ์—๋Ÿฌ

ใ… ใ… 

์„ธ์ƒ์—๋Š” ์ฐธ ๋‹ค์–‘ํ•œ ์˜ค๋ฅ˜๊ฐ€ ์žˆ๊ณ .. ๋‚ด ์†์œผ๋กœ ๋งŒ๋“ค์–ด๊ฐ€๋Š” ํ–‰๋ณตํ•œ ์—๋Ÿฌ ์„ธ์ƒ^^

 

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-boiler-plate@1.0.0 start: `node server/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-boiler-plate@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/suhyun/.npm/_logs/2023-02-20T08_02_54_422Z-debug.log

 

์ฝ”๋“œ ์ƒ์˜ ์˜ค๋ฅ˜๋Š” ์—†์–ด๋ณด์ด๋Š”๋ฐ,,

 

๊ตฌ๊ธ€๋ง ํ•ด์ค๋‹ˆ๋‹ค

node modules ํด๋”๋ฅผ ์•„์˜ˆ ์‚ญ์ œํ•˜๊ณ  ๋‹ค์‹œ npm install ํ•˜๋ผ๊ณ  ๋‚˜์˜จ๋‹ค.

 

๊ทธ๋Ÿฐ๋ฐ ๋”ฐ๋ผํ•ด๋„ ๋˜‘๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ.

 

ํ˜น์‹œ๋‚˜ ํ•ด์„œ npm run dev ๋ผ๊ณ  ์น˜๋‹ˆ๊นŒ ์‹คํ–‰์ด ๋˜๊ธด ํ•œ๋‹ค. ์™œ npm start๋Š” ์•ˆ๋ผ..ใ… 

 

 

+ (ํ•ด๊ฒฐ)

 

https://velog.io/@jsy7517/Error-listen-EADDRINUSE-address-already-in-use-5000

 

Error: listen EADDRINUSE: address already in use :::5000

5000๋ฒˆ ํฌํŠธ๊ฐ€ ์ด๋ฏธ ์‚ฌ์šฉ์ค‘์ด์–ด์„œ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ.

velog.io

์ผ๋‹จ ์ด๊ฑฐ ํ•˜๊ณ  ์•„๋ž˜ ๋ฐฉ๋ฒ•์œผ๋กœ ํ•˜๋‹ˆ๊นŒ ์„ฑ๊ณตํ•จ

 

์‹คํ–‰์‹œํ‚ฌ๋•Œ ๊ทธ ํ„ฐ๋ฏธ๋„ ๊ฒฝ๋กœ๋ฅผ ์ „์ฒด ํด๋”๊ฒฝ๋กœ ๋ง๊ณ  client ํด๋” ๋‚ด๋ถ€๋กœ ๋ฐ”๊ฟ”์ค˜์•ผ ํ–ˆ๋‹ค.

๋ญ ์–ด์ฉŒ๋‹ค๊ฐ€ ๊ทธ๊ฒŒ ๋ฐ”๋€Œ์—ˆ๋‚˜๋ด„.. ใ… ใ…  ํ•œ์ฐธ ์‚ฝ์งˆํ–ˆ๋„ค

๋ฐ”๊พธ๊ณ  npm start ํ•˜๋‹ˆ๊นŒ ์—๋Ÿฌ๋ฉ”์‹œ์ง€ + ์•„๋ž˜์™€ ๊ฐ™์€ ์•ˆ๋‚ด์ฐฝ์ด ๋œฌ๋‹ค.

 

์ผ๋‹จ ๋ญ˜ ์•Œ๋ ค์ฃผ๊ธธ๋ž˜ ์‹œํ‚ค๋Š”๋Œ€๋กœ ํ•ด๋ด„...

 

package-lock.json ํŒŒ์ผ ์ง€์šฐ๊ณ , node_modules ํด๋” ์ง€์šฐ๊ณ ,

json ํŒŒ์ผ ์•ˆ์— babel-jest๊ฐ€ ์žˆ์œผ๋ฉด ์ง€์šฐ๊ณ 

npm install ํ•ด๋ณด๋ผ๊ธธ๋ž˜ 4๋ฒˆ๊นŒ์ง€ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ผํ–ˆ๋‹ค!

 

์œผ์•„์•„ ์„ฑ๊ณต

 

 

์–ผ๋งˆ๋งŒ์— ๋ณด๋Š” ์—๋Ÿฌ์—†๋Š” ์ฐฝ์ด๋ƒ...

728x90