Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

gulp bower fails on node v0.12.3 #1372

Open
x1ddos opened this issue May 15, 2015 · 12 comments
Open

gulp bower fails on node v0.12.3 #1372

x1ddos opened this issue May 15, 2015 · 12 comments

Comments

@x1ddos
Copy link
Contributor

x1ddos commented May 15, 2015

$ node --version
v0.12.3
$ npm --version
2.9.1
$ bower --version
1.4.1
$ gulp bower
module.js:338
    throw err;
          ^
Error: Cannot find module '/usr/local/lib/node_modules/gulp/node_modules/v8flags/cache/3.28.71.19.flags.json'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:25:22)
    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 Function.Module.runMain (module.js:501:10)
@roxberry
Copy link

roxberry commented Jun 2, 2015

I hit the same error: Cannot find module '/usr/local/lib/node_modules/gulp/node_modules/v8flags/cache/3.28.71.19.flags.json

I upgraded gulp to 3.9 and that worked for me (same versions of node, npm and bower that you have)

@arve0
Copy link

arve0 commented Jun 4, 2015

For those as unobservant as me, upgrade the global gulp: npm install -g gulp

@yuranikolaev
Copy link

Worked!
Thanx!

@fadik
Copy link

fadik commented Jun 8, 2015

facing the same error node v0.12.4
tried npm cahce clean then unistall gulp and upgrade gulp to 3.9.0

@akras14
Copy link

akras14 commented Jun 11, 2015

I had to run

node v0.12.4

cp /usr/lib/node_modules/gulp/node_modules/v8flags/cache/3.26.33.flags.json /usr/lib/node_modules/gulp/node_modules/v8flags/cache/3.28.71.19.flags.json

A hack, but it worked.

@peteszym
Copy link

I also had this problem recently, and here's how I fixed it:

  1. cd /usr/local/lib/node_modules/gulp/node_modules/v8flags
  2. sudo node fetch.js

Everything worked after that.

@gunderson
Copy link

Also seeing this with:
node v0.12.5
gulp v3.9.0

I've attempted to remove and reinstall gulp multiple times (both through npm and directly), I have no local copy of gulp, only global.

I went into the v8flags dir and there was no fetch.js script! I also have no v8flags cache folder.

pg:v8flags Patrick$ ls -1
LICENSE
README.md
index.js
node_modules
package.json

@peteszym
Copy link

Looks like js-v8flags removed fetch.js when it hit version 2.0.0.

Here it is from version 1.0.8.
https://github.com/tkellen/js-v8flags/blob/1.0.8/fetch.js

Looks like it previously created a cached file with node's v8 flag options output to it, similar to what @akras14 did manually. I haven't traced it back for enough, but this might be a gulp issue, or an old version of v8flags hanging around somewhere in the dependencies.

@corydorning
Copy link

@petethedude suggestion worked for me:

cd /usr/local/lib/node_modules/gulp/node_modules/v8flags
sudo node fetch.js

@rileytg
Copy link

rileytg commented Aug 24, 2015

👍 for @petethedude suggestion #1372 (comment)

@ryanwinchester
Copy link

I had this issue as well but updating global gulp fixed it.

@marciovicente
Copy link

Nice @gunderson. It's works for me!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests