Unfortunately, this does NOT work at all.
I am on a fresh installed MacBook Air running OSX 10.8.4
As per the Homebrew instructions I installed the XCode command line tools only (100 MB instead of 1.6 GB)
Homebrew was installed on an admin account.
$ brew doctor
says I am ready to brew
$ brew install node
results in
"node: Beginning with 0.8.0, this recipe now comes with npm.
It appears you already have npm installed at /usr/local/lib/node_modules/npm.
To use the npm that comes with this recipe, first uninstall npm with
`npm uninstall npm -g`, then run this command again."
so node is already there I assume
I am adding /usr/local/lib/node_modules/npm on top of the /etc/paths entries you stated
works as expected
$ LOCALE=de_DE make clean all
gives me several errors that tell me to install smash and uglify-js, so I do
$ npm install smash
$ npm install uglify-js
both installs ok
then I run again
$ LOCALE=de_DE make clean all
but only get this output
/Users/d3user/d3/node_modules/smash/smash:46
if (error) throw error;
^
Error: ENOENT, open 'src/format/format-localized.js'
rm -f -- d3.js d3.min.js src/format/format-localized.js src/time/format-localized.js bower.json component.json
node_modules/.bin/smash src/d3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o d3.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open 'src/format/format-localized.js'
/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:204
throw new JS_Parse_Error(message, line, col, pos);
^
Error
at new JS_Parse_Error (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:196:18)
at js_error (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:204:11)
at croak (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:636:9)
at token_error (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:644:9)
at unexpected (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:650:9)
at block_ (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:943:28)
at ctor.body (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:917:25)
at function_ (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:922:15)
at expr_atom (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:1123:24)
at maybe_unary (/Users/d3user/d3/node_modules/uglify-js/lib/parse.js:1287:19)
make: *** [d3.js] Error 8
I have closed terminal in between, even restarted the computer, logged out, changed the Computer's name to not contain blanks and set the OS to English, everything to no avail.
Is there anything, Mike, that you can think of, that is different with your computer and that I may have forgotten to add?
Thanks to any hints
Michael