nodeJS (3) 썸네일형 리스트형 webpack 설치 후 Error: Cannot find module 'webpack' 웹팩 설치 이후 npm start시 Error: Cannot find module 'webpack' 발생 C:\ljw-study\spring-api\workspace\SpringApi\eatgo-web>npm start > eatgo-web@1.0.0 start C:\ljw-study\spring-api\workspace\SpringApi\eatgo-web > webpack-dev-server --port 3000 internal/modules/cjs/loader.js:968 throw err; ^ Error: Cannot find module 'webpack' Require stack: - C:\ljw-study\spring-api\workspace\SpringApi\eatgo-web\node_modu.. Webpack 설치 C:\ljw-study\spring-api\workspace\SpringApi\eatgo-web>npm install --save-dev webpack-cli webpack-dev-server npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm notice created a lockfile as pa.. nodeJS 초기 세팅 C:\ljw-study\spring-api\workspace\SpringApi\eatgo-web>npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults. See `npm help init` for definitive documentation on these fields and exactly what they do. Use `npm install ` afterwards to install a package and save it as a dependency in the package.json file.. 이전 1 다음