Cannot install grunt-contrib-imagemin (weird error 1)

Problem

I cannot install the package grunt-contrib-imagemin in a yeoman (angular) project. It fails with

npm ERR! weird error 1
npm ERR! not ok code 0

But no other errors are reported.

I am running Ubuntu 12.04, and NodeJS 0.8

Problem courtesy of: altschuler

Solution

This is solved by updating nodejs to version 0.10

I followed to instructions at http://slopjong.de/2012/10/31/how-to-install-the-latest-nodejs-in-ubuntu/

Solution courtesy of: altschuler

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.