[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)
420
작성한 질문수 4
안녕하십니까
아래와 같은 에러가 발생해서 문의드립니다.
PS C:\Users\User\Desktop\boilerplate-mern-stack-master> npm run dev
> react-boiler-plate@1.0.0 dev C:\Users\User\Desktop\boilerplate-mern-stack-master
> concurrently "npm run backend" "npm run start --prefix client"
[0]
[0] > react-boiler-plate@1.0.0 backend C:\Users\User\Desktop\boilerplate-mern-stack-master
[0] > nodemon server/index.js
[0]
[1]
[1] > client@0.1.0 start C:\Users\User\Desktop\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] C:\Users\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:10
[0] var storage = multer.diskStorage({//어디에 파일이 저장되는지
[0] ^
[0]
[0] ReferenceError: multer is not defined
[0] at Object.<anonymous> (C:\Users\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:10:15)
[0] at Module._compile (internal/modules/cjs/loader.js:1072:14)
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
[0] at Module.load (internal/modules/cjs/loader.js:937:32)
[0] at Function.Module._load (internal/modules/cjs/loader.js:778:12)
[0] at Module.require (internal/modules/cjs/loader.js:961:19)
[0] at require (internal/modules/cjs/helpers.js:92:18)
[0] at Object.<anonymous> (C:\Users\User\Desktop\boilerplate-mern-stack-master\server\index.js:39:25)
[0] at Module._compile (internal/modules/cjs/loader.js:1072:14)
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
[0] at Module.load (internal/modules/cjs/loader.js:937:32)
[0] at Function.Module._load (internal/modules/cjs/loader.js:778:12)
[0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
[0] at internal/main/run_main_module.js:17:47
[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.3/
[1] i 「wds」: webpack output is served from
[1] i 「wds」: Content not from webpack is served from C:\Users\User\Desktop\boilerplate-mern-stack-master\client\public
[1] i 「wds」: 404s will fallback to /
[1] Starting the development server...
[1]
[1] Browserslist: caniuse-lite is outdated. Please run:
[1] npx browserslist@latest --update-db
[1] Compiled with warnings.
[1]
[1] ./src/components/views/UploadProductPage/UploadProductPage.js
[1] Line 2:10: 'Typography' is defined but never used no-unused-vars
[1] Line 3:10: 'Item' is defined but never used no-unused-vars
[1] Line 26:12: 'Images' is assigned a value but never used no-unused-vars
[1] Line 26:20: 'setImages' is assigned a value but never used no-unused-vars
[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)
-------------------------------------------------------------------------------------------------
npm install bcrypt --save 이것도 해보고
bcryptjs를 받아 const bcrypt = require('bcryptjs') 이렇게도 해봤는데 위와 같은 오류가 발생합니다.
브라우저 console창에는
Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
에러가 발생합니다.
확인부탁드립니다.
답변 1
강의 내용은 훌륭하나, 환경 설정 오류 때문에 진도를 나갈 수 없습니다. 20년 버전 강의.
0
74
1
강의자료는 어디서 볼 수있나요??
0
83
1
이 쇼핑몰 만들기 강의는 관리자페이지 만드는건 없나요
0
136
2
웹에서 실시간 코드반영이 안돼요
0
137
1
app.use질문
0
74
1
강사님께 어떻게 직접질문할수있어요??
0
84
1
const함수같은거 기초강의는 어디있나요
0
97
2
리덕스 참조챕터가 어딨어요? 미리듣고오라는데요
0
88
2
강의가완전 오래되서 다 틀리네 app.jsx도 tailwind css 다틀림 무책임함
0
75
1
개발자도구에 redux란이 없어요
0
95
1
npx tailwindcss init -p 에서 계속 에러나요
0
99
1
쇼핑몰기능중 찜하기 기능은 어떻게 구현하나요
0
151
2
강의하다 줌으로 설명가능한지좀 정확히 알려주세요. 이 선생님 정책이 어떻게 되는데요. 직접 연락할 메일이라도 알려주세요
0
48
1
도표 강의 자료 열람 불가능
0
116
1
tailwindcss를 vite에서 이용하는 방식이 바뀐것 같습니다.
0
1148
2
eslint 설정 후 오류가 납니다.
0
230
1
오버로드 오류
0
159
1
VSCode에서 save를 할 때, landingpage의 useEffect가 실행되는 문제에 대하여
0
179
1
dispatch(logoutUser()) 실행시 dispatch(authuser())도 함께 실행되는 문제
0
237
2
logout할 때, server로 요청을 보내서 authUser middleware를 통과하도록 하는 이유?
0
200
1
webkit-text-size-adjust 오류
0
323
1
does not provide an export named 'userReducer'
0
223
2
빌드 배포
0
143
1
삭제 예정 강의는 언제 삭제 되나요? 저것때문에 수강완료를 못하면 회사에서 비용을 청구한다고 합니다~
0
232
2





