imagemin / jpegtran-bin

jpegtran bin-wrapper that makes it seamlessly available as a local dependency

Home Page:http://libjpeg-turbo.virtualgl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot find module 'bin-wrapper' when installed as part of Yeoman

nickeblewis opened this issue · comments

I have been using Yeoman and on a Windows 7 machine, I see the error below. Do you know what could be the cause?

$ npm install

npm WARN package.json yeoman@0.0.0 No repository field.
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/karma-phantomjs-launcher
npm http GET https://registry.npmjs.org/karma-jasmine
npm http 304 https://registry.npmjs.org/karma-phantomjs-launcher
npm http 304 https://registry.npmjs.org/karma-jasmine
npm http 304 https://registry.npmjs.org/express

jpegtran-bin@0.2.6 postinstall p:\yeoman-master\node_modules\jpegtran-bin
node index.js

module.js:340
throw err;
^
Error: Cannot find module 'bin-wrapper'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (p:\yeoman-master\node_modules\jpegtran-bin\index.js:3
:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

npm ERR! jpegtran-bin@0.2.6 postinstall: node index.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the jpegtran-bin@0.2.6 postinstall script.
npm ERR! This is most likely a problem with the jpegtran-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get their info via:
npm ERR! npm owner ls jpegtran-bin
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodej
s\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd p:\yeoman-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! p:\yeoman-master\npm-debug.log
npm ERR! not ok code 0

Just re-install.