gulp-rails-pipeline icon indicating copy to clipboard operation
gulp-rails-pipeline copied to clipboard

npm install fails

Open phulst opened this issue 9 years ago • 3 comments

I cannot get 'npm install' to succeed in this project. I keep getting the following error:

> gulp-rails@ postinstall /Users/peter/projects/lifesizey/gulp-rails-pipeline
> gulp build

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> (/Users/peter/projects/lifesizey/gulp-rails-pipeline/node_modules/browser-sync/node_modules/http-proxy/lib/http-proxy/index.js:108: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> (/Users/peter/projects/lifesizey/gulp-rails-pipeline/node_modules/browser-sync/node_modules/http-proxy/lib/http-proxy.js:4:17)
    at Module._compile (module.js:460:26)

npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/peter/.nvm/v0.12.2/bin/node" "/Users/peter/.nvm/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! gulp-rails@ postinstall: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gulp-rails@ postinstall script 'gulp build'.
npm ERR! This is most likely a problem with the gulp-rails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build

I have tried with various versions of node 0.10, 0.11 and 0.12 but always get the same error. Any suggestions on how to resolve this? Googling around got me nowhere... thanks

phulst avatar Apr 23 '15 07:04 phulst

updating the following dependency in package.json

"browser-sync": "~1.9"

resolved the issue for me.

phulst avatar Apr 23 '15 07:04 phulst

Can confirm this also works with: "browser-sync": "~2.4.0",

joeswann avatar Apr 23 '15 22:04 joeswann

Had the same issue, got it to work with "browser-sync": "~2.4.0". Thanks, @phulst @joeswann .

raebot avatar Apr 24 '15 23:04 raebot