Posts
Q&A
์์ค ์ฌ๋ ค๋ด ๋๋ค
๋ต๋ณ ํญ์ ๊ฐ์ฌํฉ๋๋ค. ํ์ด์ฐธ์์ setting ์ผ๋ก ๋ชจ๋ ์ค์น ํ๋ ๋ฉ๋๋ค. ์ ๋ ๋น์ฅฌ์ผ์คํ๋์ค๋ก ๋ฐ๋ผ ํ๊ฑฐ๋ ์ ์ด๊ฒ ์ต์ํด์์ ๊ทผ๋ฐ ํ๋ก์ ํธ ๊ฐ์ํ๊ฒฝ์ ์ ๋ชป ๊ตฌ์ฑํด์ ์๋๋ ๊ฒ ๊ฐ์ต๋๋ค ์ ๊ฐ ์๋ชป ํ๊ฒ๋๋ค. ์ด์ ํ์ด์ฐธ์์ ๋๋๊น ์กฐ๊ธ ๋จ์ ๊ฐ์ ์๊ฐํ๊ฒ ์ต๋๋ค. ๋ง์ ์ค์ ํฌ๋กค๋ง ๊ฐ์ข ํด์ฃผ์๋ฉด ์ฐธ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค. ์ ๊ฐ ์ํ๋ ๊ฑด ํฌ๋กค๋ง์ db์ ์ ์ฅํ๊ณ ์ฃผ๊ธฐ์ ์ผ๋ก ์์์ ํฌ๋กค๋งํด์ DB์ ์ ์ฅ๋๊ณ ๊ทธ๊ฒ์ ์นํ์ด์ง๊ฒ ๊ณ์ ์ ๋ฐ์ดํธํ์ฌ ํํ๋๊ฒ๋ ํ๋ ๊ด๋ จ ๊ฐ์๊ฐ ์์ผ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค. ๊ฒ์ํ ํ์ฑ๋ ๊ตฌํํด๋ณด๋ฉด ์ข์ ๊ฒ ๊ฐ๊ตฌ์ ๋ค๋ฅธ ๊ณณ๋ค์์๋ ์ฐพ์๋ณด๊ธฐ ํ๋ ์ฃผ์ ๋ค์ธ๊ฒ ๊ฐ์ต๋๋ค. ์งง๊ณ ์ฌ๋ฏธ์๋ ํ๋ก์ ํธ ๋ณด์ฌ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
- 0
- 2
- 281
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
ํด๊ฒฐ๋์์ต๋๋ค ใ ใ ๋ค๋ฅธ ์ง๋ฌธ์์ ์ฐพ์๊ฑธ ํด๋ณด์์ต๋๋ค. ์ผ๋จ ํน์ ๋ชฐ๋ผ์ nodejs, ๋น์ฃผ์ผ์คํ๋์ค์ฝ๋ ๋ค ์ญ์ ํ๊ณ ํ์ด์ฌ ๋ถํฐ ์ฃ๋ค ์ญ์ ํ๊ณ ๋ค์ nodejs ์ค์นํ๊ณ ๋น์ฃผ์ผ์คํ๋์ค ์ค์น ํ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ค์ ์ฒ์๋ถํฐ ์์ํด๋ณด์์ต๋๋ค. ์๋ฒ ๋ฃจํธ์์ npm install ํ์ง๋ง ๋ง์ ์๋ฌ๊ฐ ๋ ์๊ฒผ์ต๋๋ค. ๋ํ์ ์ผ๋ก bcrypt 3.0.8 ๋ฒ์ ์ด ํ์ฌ ์ ๊ฐ ์ค์นํ nodejs 12.18.2 ์์ ์ค์น๊ฐ ๋์ง ์๋ ๋ค๋ ์๋ฌ๋ฉ์ธ์ง๊ฐ ๋ณ์ต๋๋ค. ๊ทธ๋์ ๋ค๋ฅธ ์ง๋ฌธ์์ ์ฌ๋ผ์จ ๋ด์ฉ ์ค์ bcrypt ๋ฒ์ ์ 5.0.0 ์ผ๋ก dependencies ์์ ์์ ํ๊ณ ๋ค์ npm install ์ ํ๋ bcrypt ์ค์น๊ฐ ์ ๋์์ผ๋ฉฐ ์ดํ๋ก๋ npm run dev ์คํ์ ๋ํ ์ค๋ฅ๊ฐ ์์ผ๋ฉฐ ์ ์ผ ์คํธ๋ ์ค ๋ฐ์๋ ํ์๊ฐ์ ์ด ์ ์์ ์ผ๋ก ์ ์ด๋ฃจ์ด ์ง๊ณ ์์ต๋๋ค. ์ด๊ฒ ์์ธ์ธ์ง๋ ์ด๋ณด๋ผ์ ์ ๋ชจ๋ฅด๊ฒ ์ผ๋ ๋ฒ์ ๋ฌธ์ ์ธ๊ฒ ๊ฐ์ต๋๋ค. ์ฌํํผ ๋ช ์ฃผ๋์์ ๊ธด ์๊ฐ์ ์ด๊ฑฐ ํ๋๋ก ์ง๋๋ฅผ ๋ชป ๋๊ฐ์๋๋ฐ ์ด์ ๋ค์ ์์ฃผํ์ ์ํ์ฌ ๋ฌ๋ ค๋ณด๊ฒ ์ต๋๋ค. John Ahn, ๊ทธ๋ฆฌ๊ณ ๋ต๋ณ ๋ฌ์์ฃผ์ ๋ชจ๋ ๋ถ๋ค ๊ฐ์ฌํฉ๋๋ค!!!
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
npm i -g windows-build-tools ์๊ฒ๋ ์ค์นํด๋ณด๊ตฌํ๊ฒฝ๋ณ์ ์ถ๊ฐ๋ ํด๋ณด๊ตฌ module.exports = { mongoURI:'mongodb+srv://fighting:0613kskk@boilerplate.2dskb.mongodb.net/fighting?retryWrites=true&w=majority' } ๋ชฝ๊ณ db๋ ๋ค์ํด๋ณด๊ณ ... ๋ค๋ฅธ ๊ธ๋ค ์ฐพ์์ ์ด๊ฒ์ ๊ฒ ํด๋ณด๋๋ฐ ์๋ฉ๋๋ค ใ ใ ๋ค์ ์น๋ค ์ง์๋ณด๊ณ ๋ ํด๋ณด๊ณ ๋ ํด๋ณด๊ฒ ์ต๋๋ค.๋๋ฌด ์๋๋ฉด ๋ ๊ธ ๋จ๊ธฐ๋๋ก ํ๊ฒ ์ต๋๋ค.๋ฒ๊ฑฐ๋กญ๊ฒ ํด๋๋ ค ์ฃ์กํฉ๋๋ค ใ ใ
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
npm install bcrypt --save ํ๋ฉด ์๋์ ๊ฐ์ ์๋ฌ ๋ฉ์ธ์ง๊ฐ ๋น๋๋ค. ---------------------------------------------------------------------- PS D:\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master> npm install bcrypt -save npm WARN deprecated bcrypt@3.0.8: versions > bcrypt@3.0.8 install D:\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + bcrypt@3.0.8 added 34 packages from 37 contributors, removed 30 packages and audited 513 packages in 10.044s 4 packages are looking for funding run `npm fund` for details found 2 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details PS D:\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master> node -v v12.18.2 --------------------------------------------------------------------------------- ๋ ธ๋ ๋ฒ์ ๊ณผ ๋ค๋ฅธ ๋ฒ์ ๋ค์ ๋ฌธ์ ์ผ ์ ์์๊น์?
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
https://github.com/creviceplay/fighting.git ํน์๋ ํด์ ๋ฉ์ผ๋ ๋จ๊น๋๋น.kskworld0@gmail.com ์ ๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
cmd ์ ์ฒด ์๋ฌ ๋ฉ์ธ์ง ์ ๋๋ค๋ค๋ฅธ ๊ณต๋ถ๋ค๋ ํด๋ดค๋๋ฐ ์ด๋ ๊ฒ ์๋ฌ๋ฅผ ํด๊ฒฐ ๋ชปํ๊ฒ ์ฒ์ ์ธ๊ฒ ๊ฐ์ต๋๋ค.๋ชฝ๊ณ db ์ฐ๊ฒฐ ๋ฌธ์ ์ธ๊ฒ ๊ฐ์๋ฐ ์ ์๋๋์ง ์ด์ ๋ฅผ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค. ์ ๋์๋ ๋ถ๋ค ๋๋ฌด ๋ถ๋ฝ์ต๋๋ค^^; -------------------------------------------------------------------- PS D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master> npm run dev > react-boiler-plate@1.0.0 dev D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master > concurrently "npm run backend" "npm run start --prefix client" [0] [0] > react-boiler-plate@1.0.0 backend D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master [0] > nodemon server/index.js [0] [1] [1] > client@0.1.0 start D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\client [1] > react-scripts start [1] [0] [nodemon] 1.19.4 [0] [nodemon] to restart at any time, enter `rs` [0] [nodemon] watching dir(s): *.* [0] [nodemon] watching extensions: js,mjs,json [0] [nodemon] starting `node server/index.js` [0] internal/modules/cjs/loader.js:969 [0] throw err; [0] ^ [0] [0] Error: Cannot find module 'bcrypt' [0] Require stack: [0] - D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\server\models\User.js [0] - D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\server\routes\users.js [0] - D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\server\index.js [0] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15) [0] at Function.Module._load (internal/modules/cjs/loader.js:842:27) [0] at Module.require (internal/modules/cjs/loader.js:1026:19) [0] at require (internal/modules/cjs/helpers.js:72:18) [0] at Object. (D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\server\models\User.js:2:16) [0] at Module._compile (internal/modules/cjs/loader.js:1138:30) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) [0] at Module.load (internal/modules/cjs/loader.js:986:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:879:14) [0] at Module.require (internal/modules/cjs/loader.js:1026:19) [0] at require (internal/modules/cjs/helpers.js:72:18) [0] at Object. (D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\server\routes\users.js:3:18) [0] at Module._compile (internal/modules/cjs/loader.js:1138:30) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) [0] at Module.load (internal/modules/cjs/loader.js:986:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:879:14) { [0] code: 'MODULE_NOT_FOUND', [0] requireStack: [ [0] 'D:\\๊ฑธ\\๊ณต๋ถ\\์ธํ๋ฐ\\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\\boilerplate-mern-stack-master\\server\\models\\User.js', [0] 'D:\\๊ฑธ\\๊ณต๋ถ\\์ธํ๋ฐ\\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\\boilerplate-mern-stack-master\\server\\routes\\users.js', [0] 'D:\\๊ฑธ\\๊ณต๋ถ\\์ธํ๋ฐ\\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\\boilerplate-mern-stack-master\\server\\index.js' [0] ] [0] } [0] [nodemon] app crashed - waiting for file changes before starting... [1] [HPM] Proxy created: / -> http://localhost:5000 [1] i ๏ฝขwds๏ฝฃ: Project is running at http://192.168.0.2/ [1] i ๏ฝขwds๏ฝฃ: webpack output is served from [1] i ๏ฝขwds๏ฝฃ: Content not from webpack is served from D:\๊ฑธ\๊ณต๋ถ\์ธํ๋ฐ\๋ฐ๋ผํ๋ฉฐ๋ฐฐ์ฐ๋๋ ธ๋-๋ฆฌ์กํธ-์ผํ๋ชฐ\boilerplate-mern-stack-master\client\public [1] i ๏ฝขwds๏ฝฃ: 404s will fallback to / [1] Starting the development server... [1] [1] Compiled with warnings. [1] [1] ./src/components/views/LoginPage/LoginPage.js [1] Line 74:11: 'dirty' is assigned a value but never used no-unused-vars [1] Line 79:11: 'handleReset' is assigned a value but never used no-unused-vars [1] [1] ./src/components/views/RegisterPage/RegisterPage.js [1] Line 92:11: 'dirty' is assigned a value but never used no-unused-vars [1] Line 97:11: 'handleReset' is assigned a value but never used no-unused-vars [1] [1] Search for the keywords to learn more about each warning. [1] To ignore, add // eslint-disable-next-line to the line before. [1] [1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
๋คํธ์ํฌ๋ 0.0.0.0/0 (includes your current IP address) Active EDIT DELETE ์ด๋ ๊ฒ ๋ณ๊ฒฝ๋ ํด๋ดฃ๊ตฌ์
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
์. ๋ค์ ์๋ ์ด๊ฒ์ ๊ฒ ํ๋ค๊ฐ ์ ๊ฑธ ์ฌ๋ ค๋ฒ๋ ธ๋ค์.dbname ๋ ์ ๋ ฅ ๋์ด์ ธ ์์ต๋๋ค. mongodb+srv://ksk:123456789@boilerplate.2dskb.mongodb.net/boilerplate?retryWrites=true&w=majority ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค ใ ใ ๊ตฌ๊ธ๋ง์ ์ฃผ๊ฑฐ๋ผ ํด๋ณด๊ณ ๋ค๋ฅธ ๋ต๋ณ๋ค์ ๋ด์ฉ๋ค๋ ๋ณด๊ณ ํด๋ณด๋๋ฐ ์๋์ ๋๋ฌด ๋ต๋ตํฉ๋๋ค ใ ์ด๋ ๊ฒ ํด๊ฒฐ ๋ชปํ๊ฒ ์ฒ์ ์ธ๊ฒ ๊ฐ์ต๋๋ค.
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
dev.js mongodb+srv://ksk:123456789@boilerplate.2dskb.mongodb.net/?retryWrites=true&w=majority ์ฌ๊ธฐ์์ ๋ฌธ์ ๊ฐ ์์๊น์?ใ ใ ๋ค์์ผ๋ก ๋์ด ๊ฐ๊ณ ์ถ์ต๋๋น ใ ใ
- 1
- 18
- 26K
Q&A
์ ์ญ์ ECONNREFUSED ์๋ฌ๊ฐ ์๊น๋๋ค.
์๋ฒ ๊ฒฝ๋ก์์ ์คํ ํ์ด์ฉ. ใ ใ ใ ๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค.^^
- 1
- 18
- 26K




