Munter / grunt-reduce

A grunt kitchen that reduces your web ingredients down to their essence for optimal serving. Bon appétit!
MIT License
184 stars 13 forks source link

NPM Install Fails #16

Closed JonathanWolfe closed 10 years ago

JonathanWolfe commented 10 years ago

Attempting to install grunt-reduce on my work computer fails.

Platform: OSX 10.8.5 Node: 0.10.31 NPM: 1.4.23 Log: http://50.56.179.207/sandbox/npm-debug.log

I suspected it was a permissions issue, but still fails under sudo and when using Root directly.

final error in log seems to be about contextify@0.1.8 failing.

Munter commented 10 years ago

I haven't seen this before, so I have no idea what is going on. I would probably clear out the npm cache, delete the node_modules, update npm, gyp etc and try again.

@papandreou Do you have any qualified insights here? The sae thing is apparently happening with assetgraph directly

papandreou commented 10 years ago

@JonathanWolfe Do you have XCode etc. installed as described in https://github.com/tmpvar/jsdom#mac?

JonathanWolfe commented 10 years ago

You know what. I don't think I ever re-installed that when I changed machines. I'll have to check on Monday.

Thanks and sorry this (probably) isn't an actual bug with AssetGraph.

papandreou commented 10 years ago

Crossing my fingers. To be fair, it's a weird and somewhat undocumented dependency. Luckily it'll go away with node.js 0.12, where the contextify is kind of adopted in to the vm module.

Munter commented 10 years ago

If it's a missing compiler then that's a really horrible error message. I wonder if they could improve on that

JonathanWolfe commented 10 years ago

Turns out that I didn't have Xcode install on the new machine.

It also turns out that it was the missing python and make on the commandline that was causing the issues.

Sorry guys!