# Cannot find module 'webpack'

**URL:** <https://forum.ionicframework.com/t/cannot-find-module-webpack/40309>\
**Category:** ionic-v3\
**Created:** [January 2, 2016, 7:30pm UTC](https://forum.ionicframework.com/t/cannot-find-module-webpack/40309 "2016-01-02T19:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pidik](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@pidik](https://forum.ionicframework.com/u/pidik)\
**Post date:** [January 2, 2016, 7:30pm UTC](https://forum.ionicframework.com/t/cannot-find-module-webpack/40309/1 "2016-01-02T19:30:29Z")

</div>

Following the docs, wen I do ‘ionic serve’ I get:

∆ Compiling and bundling with Webpack…  
There was an error loading webpack.config.js:

Error: Cannot find module 'webpack’  
at Function.Module.\_resolveFilename (module.js:326:15)  
at Function.Module.\_load (module.js:277:25)  
at Module.require (module.js:354:17)  
at require (internal/module.js:12:17)  
at Object. (/home/redowsan/myApp/webpack.config.js:2:15)  
at Module.\_compile (module.js:398:26)  
at Object.Module.\_extensions…js (module.js:405:10)  
at Module.load (module.js:344:32)  
at Function.Module.\_load (module.js:301:12)  
at Module.require (module.js:354:17)

Cannot find module ‘webpack’ (CLI v2.0.0-beta.15)

Your system information:

Cordova CLI: 5.4.1  
Ionic Version: 2.0.0-alpha.45  
Ionic CLI Version: 2.0.0-beta.15  
Ionic App Lib Version: 2.0.0-beta.8  
OS: /bin/sh: lsb\_release: no se encontró la orden  
Node Version: v5.3.0

(I’m using AntergOS Linux)

---

<div class="post-metadata">

**Author:** ![swarner](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@swarner](https://forum.ionicframework.com/u/swarner)\
**Post date:** [January 3, 2016, 5:28am UTC](https://forum.ionicframework.com/t/cannot-find-module-webpack/40309/2 "2016-01-03T05:28:31Z")

</div>

Run ‘npm install webpack --save-dev’ and try again

If you haven’t run ‘npm install’ after creating the project, do that first.

---

<div class="post-metadata">

**Author:** ![pidik](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@pidik](https://forum.ionicframework.com/u/pidik)\
**Post date:** [January 4, 2016, 2:01pm UTC](https://forum.ionicframework.com/t/cannot-find-module-webpack/40309/4 "2016-01-04T14:01:57Z")

</div>

it’s working now!! Thank you so much 😉
