devongovett/node-wkhtmltopdf

Unable to 'npm install wkhtmltopdf' on mac

mrmarktyy opened this issue · 1 comments

This is the error meesage after i ran this,

$ sudo npm install wkhtmltopdf

npm ERR! Darwin 15.3.0
npm ERR! argv "/Users/xxxx/.nvm/versions/node/v6.3.1/bin/node" "/Users/xxxx/.nvm/versions/node/v6.3.1/bin/npm" "install" "wkhtmltopdf"
npm ERR! node v5.6.0
npm ERR! npm  v3.10.3
npm ERR! code ENOSELF

npm ERR! Refusing to install wkhtmltopdf as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xxxxx/projects/playground/wkhtmltopdf/npm-debug.log

It turned out that my directory name (wkhtmltopdf) was conflicting with the name in package.json