[Node.js] gyp ERR! configure error Error: EACCES, mkdir '/Users/name/.node-gyp'

Tadashi Shigeoka ·  Thu, December 13, 2012
================================================================================
=                                                                              =
=  Attempting to build bson c++ extension                                      =
=   Windows: no build will be attempted as binaries are prepackaged            =
=   Unix: on failure the package will still install without the C++ extension  =
=                                                                              =
================================================================================
node-gyp clean
node-gyp configure build
gyp WARN install got an error, rolling back install
gyp ERR! configure error Error: EACCES, mkdir '/Users/your_username/.node-gyp'
gyp ERR! not ok 
make: *** [node_gyp] Error 1
child process exited with code 2
$ mkdir /Users/your_username/.node-gyp
$ chmod 777 /Users/your_username/.node-gyp