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

Build Failed #26

Closed
tomchentw opened this issue Jan 17, 2014 · 9 comments
Closed

Build Failed #26

tomchentw opened this issue Jan 17, 2014 · 9 comments

Comments

@tomchentw
Copy link

I think it's caused by you've change through to through2

Error: Cannot find module 'through'
    at Function.Module._resolveFilename (module.js:338:15)

https://travis-ci.org/gulpjs/gulp-util/jobs/17113356

@tomchentw
Copy link
Author

@Rowno
Copy link

Rowno commented Jan 17, 2014

This completely broke my gulp build. Almost every gulp plugin I'm using now no longer works. 😢

@tomchentw
Copy link
Author

Yeah, every gulp modules with

"dependencies": {
    "gulp-util": "*"
}

are failed.

@Rowno
Copy link

Rowno commented Jan 17, 2014

Not even that, everything with "gulp-util": "~2.2.0" is now broken.

@killercup
Copy link

package.json has the dependency "through2": "~0.4.0", but lib/buffer.js requires through (not through2).

@tomchentw
Copy link
Author

@killercup yes.

A quick & dirty solution is use global replace here:
Replace require('through'); with require('through2');.
This will make your local npm happy and you may continue your work..

@killercup
Copy link

I've solved it for now by using version 2.2.10 (exactly).

@yocontra
Copy link
Member

Already fixed - published on the wrong branch. npm update

@tomchentw
Copy link
Author

Thanks!!

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

No branches or pull requests

4 participants