Webpack-dev-server Cannot find module
<p>Welcome,</p>

<p>I'm new to React and Node.js especially. I wanted to learn something about React and ended up struggling with Node.js. The problem is i cannot set a web-dev-server properly. Sorry if this questions seems trival although I haven't find a solution for hours. </p>

<p>Here it is:
<strong>webpack.config.js</strong></p>

<pre><code>module.exports = {
    entry: './src/index.js',
    output: {
        path: __dirname,
        filename: 'app/js/main.js'
    },
    module: {
        loaders: [{
                test: /\.jsx?$/,
                loader: 'babel',
                exclude: /node_modules/
            }]
    }
}
</code></pre>

<p><strong>package.json</strong></p>

<pre><code>{
  "name": "Github_profile_viewer",
  "version": "0.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
  },
  "author": "",
  "license": "BSD", 
  "devDependencies": {
    "babel-core": "5.8.*",
    "babel-loader": "5.3.*",
    "webpack": "1.12.*",
    "webpack-dev-server": "1.10.*"
  },
  "dependencies": {
    "react": "^0.14,7",
    "react-dom": "^0.14.7"
  }
}
</code></pre>

<p><strong><a href="http://localhost:8080/app/js/main.js" rel="nofollow">http://localhost:8080/app/js/main.js</a></strong></p>

<pre><code>/******/ (function(modules) { // webpackBootstrap
/******/    // The module cache
/******/    var installedModules = {};

/******/    // The require function
/******/    function __webpack_require__(moduleId) {

/******/        // Check if module is in cache
/******/        if(installedModules[moduleId])
/******/            return installedModules[moduleId].exports;

/******/        // Create a new module (and put it into the cache)
/******/        var module = installedModules[moduleId] = {
/******/            exports: {},
/******/            id: moduleId,
/******/            loaded: false
/******/        };

/******/        // Execute the module function
/******/        modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/        // Flag the module as loaded
/******/        module.loaded = true;

/******/        // Return the exports of the module
/******/        return module.exports;
/******/    }


/******/    // expose the modules object (__webpack_modules__)
/******/    __webpack_require__.m = modules;

/******/    // expose the module cache
/******/    __webpack_require__.c = installedModules;

/******/    // __webpack_public_path__
/******/    __webpack_require__.p = "";

/******/    // Load entry module and return exports
/******/    return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

    (function webpackMissingModule() { throw new Error("Cannot find module \"./src/index.js\""); }());


/***/ }
/******/ ]);
</code></pre>

<p>I also receive such warrning when I try to establish webpack-dev-server:
<a href="http://i.stack.imgur.com/kmUqJ.jpg" rel="nofollow">CMD Error</a></p>

<p>Alas I already <code>npm installed</code> that required module (at least it should be that way).</p>

<p>I have no idea what I have to do to make it works :(</p>