Server/Spring ErrorLog
Cannot find module 'webpack'
aonee
2020. 1. 21. 14:08
문제점
npm install --save-dev webpack-cli webpack-dev-server하여 설치했음에도 불구하고
webpack이 제대로 실행 안되는 문제발생.
해결
npm link webpack
C:\Users\choiyewon\Desktop\Project\me\fastcam\Spring\restaurant\restaurant-web>npm install --save-dev webpack-cli webpack-dev-server
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN webpack-cli@3.3.10 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server@3.10.1 requires a peer of webpack@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.7.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN restaurant-web@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ webpack-cli@3.3.10
+ webpack-dev-server@3.10.1
added 428 packages from 292 contributors and audited 4616 packages in 57.691s
found 0 vulnerabilities
C:\Users\choiyewon\Desktop\Project\me\fastcam\Spring\restaurant\restaurant-web>npm start
> restaurant-web@1.0.0 start C:\Users\choiyewon\Desktop\Project\me\fastcam\Spring\restaurant\restaurant-web
> webpack-dev-server
internal/modules/cjs/loader.js:651
throw err;
^
Error: Cannot find module 'webpack'
반응형