작성
·
178
0
선생님 안녕하세요.
root 디렉토리가 최상위 디렉토리를 말씀하시는거 맞나요?
PS C:\> 얘를 말씀하시는건지
PS C:\Users\User\Desktop\boilerplate-mern-stack-master> 얘를 말씀하시는건지
저는 PS C:\Users\User\Desktop\boilerplate-mern-stack-master> 여기에 npm install multer --save 를 했습니다.
하고 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] (node:15324) Warning: Accessing non-existent property 'count' of module exports inside circular
dependency
[0] (Use `node --trace-warnings ...` to show where the warning was created)
[0] Server Listening on 5000
[0] (node:15324) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
[0] (node:15324) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
[0] (node:15324) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
[0] MongoDB Connected...
[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] ./node_modules/express/lib/view.js
[1] Critical dependency: the request of a dependency is an expression
[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/utils/FileUploade.js
[1] Line 5:10: 'response' is defined 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.
npm install multer --save 를 하니까 아래와 같이 나왔습니다. 참고 부탁 드립니다.
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"})
+ multer@1.4.3
updated 1 package and audited 497 packages in 3.114s
4 packages are looking for funding
run `npm fund` for details
found 19 vulnerabilities (6 low, 4 moderate, 9 high)
답변 1
0
안녕하세요 !!!
multer는 백엔드 부분에 필요한 모듈이기에 백엔드 package.json파일이 있는 디렉토리에서 npm install 로 설치해주시면 됩니다 ~
제가 로그로만 봤을때는 프론트엔드 디렉토리에서 설치하신것 같은데 확인해봐주실래요?!!!