Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: pipe.then is not a function #3

Closed
thisconnect opened this issue May 26, 2016 · 3 comments
Closed

TypeError: pipe.then is not a function #3

thisconnect opened this issue May 26, 2016 · 3 comments

Comments

@thisconnect
Copy link

installation succeeds

OS X 10.11.5
Xcode Version 7.3.1
Node v6.2.0

npm i imagemin-pngcrush
site@1.0.0 /Users/me/project
└─┬ imagemin-pngcrush@4.1.0 
  ├── exec-buffer@2.0.1 
  └─┬ through2@0.6.5 
    └─┬ readable-stream@1.0.34 
      └── isarray@0.0.1 

test

const imagemin = require('imagemin');
const imageminPngcrush = require('imagemin-pngcrush');

imagemin(['images/*.png'], 'build', {
  use: [imageminPngcrush()]
})
.then(() => {
  console.log('Images optimized');
})
.catch(err => {
  console.log(err)
});

result

TypeError: pipe.then is not a function
    at fsP.readFile.then.data (/Users/me/project/node_modules/imagemin/index.js:15:4)
@kevva
Copy link
Member

kevva commented May 26, 2016

Not converted to using promises yet.

@kevva kevva closed this as completed in 582f87e May 26, 2016
@kevva
Copy link
Member

kevva commented May 26, 2016

Should work now.

@thisconnect
Copy link
Author

yes it works, thanks!

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

No branches or pull requests

2 participants