donpark / html2jade

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

Not compatible with node 0.8.x #37

Closed zdwalter closed 12 years ago

zdwalter commented 12 years ago

npm http GET https://registry.npmjs.org/html2jade npm http 200 https://registry.npmjs.org/html2jade npm http GET https://registry.npmjs.org/html2jade/-/html2jade-0.1.18.tgz npm http 200 https://registry.npmjs.org/html2jade/-/html2jade-0.1.18.tgz npm http GET https://registry.npmjs.org/jsdom npm http GET https://registry.npmjs.org/commander npm http 200 https://registry.npmjs.org/commander npm http 200 https://registry.npmjs.org/jsdom npm ERR! error rolling back html2jade@0.1.18 Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/html2jade'

npm ERR! Unsupported npm ERR! Not compatible with your version of node/npm: commander@0.5.2 npm ERR! Required: {"node":">= 0.4.x < 0.8.0"} npm ERR! Actual: {"npm":"1.1.21","node":"0.8.1"} npm ERR! npm ERR! System Darwin 11.4.0 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "html2jade" "-g" npm ERR! cwd /Users/zdwalter/Downloads/node-v0.8.1 npm ERR! node -v v0.8.1 npm ERR! npm -v 1.1.21 npm ERR! code ENOTSUP npm ERR! message Unsupported npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/zdwalter/Downloads/node-v0.8.1/npm-debug.log npm not ok

donpark commented 12 years ago

@zdwalter this appears to be an issue with commander module, not html2jade.

I'm however able to install html2jade successfully with node.js 0.8.1 on OS X Lion which pulls in commander@0.5.2.

Note that latest version of commander is 0.6.1. It's not clear why version 0.5.2 is still marked as the 'latest' at NPM repository.

donpark commented 12 years ago

I see now why commander@0.5.2 is marked as latest. 0.5.2 was republished on June 25th, possibly because of build issues in later versions.

Anyhow, commander@0.5.2's package.json doesn't have node":">= 0.4.x < 0.8.0 declared as your error dump indicates so I am lost as to where the problem might be.

zdwalter commented 12 years ago

commander upgrade to 1.0.0 now, it has been fixed.