Oliver Watkins
Oliver Watkins

Reputation: 13539

npm install hangs at gulp-imagemin postinstall

I am building my project using NPM and the install process hangs.

I have narrowed it down to the gulp-imagemin module for gulp.

If I run

npm install [email protected]

it hangs at about the 5 minute mark.

If I do "npm install --verbose" I get a ton of output, and eventually it hangs at this :

npm verb unsafe-perm in lifecycle true npm info postinstall [email protected] npm verb unlock done using C:\Users\watkins\AppData\Roaming\npm-cache_locks\utf-8-validate-d0ec860f08ac7b2c.lock for D:\dev\ngs-frontend-next\node_modules\browser-sync\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate

[email protected] postinstall D:\dev\ngs-frontend-next\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin node lib/install.js

Is this something to do with gulp-imagemin?

How would I go about resolving this problem?

Upvotes: 3

Views: 843

Answers (1)

Elger van Boxtel
Elger van Boxtel

Reputation: 1060

Please see Installing gulp-imagemin on Windows creates well over 10,000 files.

As the answer suggests: you're probably running on a Windows machine.

Update your nodeJS to version 5.* to get a flat dependency list to avoid the 260 char Windows path problem, see: Why does the 260 character path length limit exist in Windows?

Upvotes: 2

Related Questions