I am trying to use the node-freeimage package (source) inside a node-webkit application. I am running Mac OS X and have installed and placed the node-webkit app inside my Applications folder. I am working on a fresh NPM install:
brew update node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
I have then taken the following steps:
alias nw="/Applications/node-webkit.app/Contents/MacOS/node-webkit"
brew install freeimage
cd /path/to/my/project
npm install git+https://git@github.com/mikeseven/node-image.git
cd ./node_modules/node-image
node-pre-gyp rebuild --runtime=node-webkit --target=0.3.2
I get the following error:
Error: node-image package.json is not node-pre-gyp ready:
package.json must declare these properties:
binary.module_name
binary.module_path
binary.host
at validate_config (/usr/local/Cellar/node/0.10.1/lib/node_modules/node-pre-gyp/lib/util/versioning.js:79:15)
at Object.module.exports.evaluate
Here's some info on versions:
node -v = v0.10.32
node-pre-gyp -v = v0.5.27
I'm not clear on what I should do with the error. Do I need to manually define those fields? If so, how?