vesparny / angular-kickstart

angular-kickstart - speed up your AngularJS development and testing with a great gulpjs build system.
http://bit.ly/angular_kickstart
MIT License
552 stars 83 forks source link

Cannot read property 'prototype' of undefined #24

Closed liujason closed 9 years ago

liujason commented 9 years ago

I just got the error below after following the Getting started doc on a freshly cloned repo.

$ gulp serve
util.js:634
  ctor.prototype = Object.create(superCtor.prototype, {
                                          ^
TypeError: Cannot read property 'prototype' of undefined
    at Object.exports.inherits (util.js:634:43)
    at Object.<anonymous> (c:\Users\jaliu\Repository\github\angular-kickstart\node_modules\browser-sync\node_modules\http-proxy\lib\http-proxy\index.js:106:17)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (c:\Users\jaliu\Repository\github\angular-kickstart\node_modules\browser-sync\node_modules\http-proxy\lib\http-proxy.js:4:17)
    at Module._compile (module.js:460:26)
vesparny commented 9 years ago

It seems to be a problem related to a lib used by browser-sync on windows. Could you try to upgrade browser-sync to the latest version? I cannot reproduce on OSX.

ognjenkuljic commented 9 years ago

Same error is present on linux, even after update.

vesparny commented 9 years ago

The problem is about browser-sync version. try to replace it in package.json then run npm install

"browser-sync": "~2.7.1"

It will work.

I'll update every dependency in the next days and bump a new versione

whisher commented 9 years ago

Hi, may be try to delete node_modules before run npm install I'm having the same issue with browser-sync in an other app. Bye

On 8 May 2015 at 16:33, Alessandro Arnodo notifications@github.com wrote:

The problem is about browser-sync version. try to replace it in package.json then run npm install

"browser-sync": "~2.7.1"

It will work.

I'll update every dependency in the next days and bump a new versione

— Reply to this email directly or view it on GitHub https://github.com/vesparny/angular-kickstart/issues/24#issuecomment-100248404 .

vesparny commented 9 years ago

Version 1.1.0 has been released. It should work properly now.

Let me know