title: Cannot find Module in "protractor'
body: <p>I am trying to get started with page object model in Protractor, but i am always getting "module not found" error.
  Please guide.</p>
  
  <p>My Folder structure:</p>
  
  <pre><code>pages
     --- homePage.js
  spec.js
  conf.js
  </code></pre>
  
  <p>spec.js</p>
  
  <pre><code>'use strict';
  
  var HomePage = require('pages/homePage.js');
  
  describe('Login cases', function() {
    var page;
    it('Login without username &amp; password', function() {
      page= new HomePage();
      page.mainLoginButton.click();
      page.popupLoginButton.click();
      expect(page.errMsgUsername.getText()).toEqual('Please enter valid Email or Mobile Number');
    });
  });
  </code></pre>
  
  <p>conf.js</p>
  
  <pre><code>exports.config = {
    framework: 'jasmine',
    seleniumAddress: 'http://localhost:4444/wd/hub',
    specs: ['spec.js']
  }
  </code></pre>
  
  <p>homePage.js</p>
  
  <pre><code>'use strict';
  
  var HomePage = function () {
    browser.get('https://www.mobikwik.com');
    browser.driver.manage().window().maximize();
  };
  
   HomePage.prototype = Object.create({}, {
      mainLoginButton: { get: function () { return by.id('qa-mbkLogin')); 
  
  }},
      popupLoginButton: { get: function () { return by.xpath('//*
  
  [@id="loginInfo"]/div[3]/p/button')); }},
      errMsgUsername: { get: function () { by.xpath('//*
  
  [@id="loginInfo"]/div[1]/span')); }},
    }}
  });
  
  module.exports = HomePage;
  </code></pre>
  
  <p>I am always getting cannot find module error. What need to be changed?</p>