작성
·
270
1
아래와 같은 방법을 써봤는데 안되더라구요 ㅠ
npm cache clean --force
node_modules
folderpackage-lock.json
filenpm install
오류 메세지
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
Hash: 450784a2e0438262e127
Version: webpack 4.44.2
Time: 31ms
Built at: 2020-09-20 9:48:22 ├F10: PM┤
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enabledefaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ERROR in Entry module not found: Error: Can't resolve './src' in '/Users/Eric/study/webpack/npm/getting-started'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! getting-started@1.0.0 build: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the getting-started@1.0.0 build 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/Eric/.npm/_logs/2020-09-20T12_48_22_174Z-debug.log