Open freeman42x opened 10 years ago
It's an optional dependency failing. It's the image optimization that dependes on node-canvas, which has a dependency chain needing contextify. We marked this whole dependency chain as optional specificly because of that. The requirements for making this run are not default installed on many operating systems, especially not windows.
Your build should run fine, allthough with less image optimization
I was hoping there might be some solution to this problem, maybe using symbolic links somehow and moving the child node_modules directly under root node_modules when there are no version conflicts.
When
npm i grunt-reduce
to a path as short asD:\TP\
it throws a build error for an optional dependency:As mentioned here: http://support.microsoft.com/kb/316010 it might be file path length related. When installing on a longer path it threw a different error that actually mentioned it was related to path length.
Installing directly in root
D:\
throws no error.Is there any way to get past this error in an elegant way without installing in root?