donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 156 forks source link

npm install -g html2jade failing #64

Closed MattCowski closed 10 years ago

MattCowski commented 10 years ago
gyp WARN EACCES user "M" does not have permission to access the dev dir "/Users/M/.node-gyp/0.10.22"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/folders/50/jhs_jbzs7mxfx_3vq4pzkncr0000gn/T/.node-gyp"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

gyp: Error 1 running xcodebuild
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/Cellar/node/0.10.22/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:467:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.22/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/html2jade/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.22
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok 
npm http 200 http://registry.npmjs.eu/tough-cookie
npm http 200 http://registry.npmjs.eu/domhandler/-/domhandler-2.1.0.tgz
npm http 200 http://registry.npmjs.eu/cssom/-/cssom-0.3.0.tgz
npm http 200 http://registry.npmjs.eu/readable-stream
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.22/bin/node" "/usr/local/bin/npm" "install" "-g" "html2jade"
npm ERR! cwd /Users/M/Ruby/Angular-Fun
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
donpark commented 10 years ago

This appears to be more user permission related XCode/node-gyp/contextify issue than html2jade issue.

MattCowski commented 10 years ago

Please forgive me if I am again being a noob. After updating node-gyp, I got this:

npm ERR! EEXIST, mkdir '/usr/local/lib/node_modules/html2jade/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream'
File exists: /usr/local/lib/node_modules/html2jade/node_modules/jsdom/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream
Move it away, and try again.