Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use example in the depot git #129

Closed
tounsi67 opened this issue Dec 16, 2014 · 1 comment
Closed

Cannot use example in the depot git #129

tounsi67 opened this issue Dec 16, 2014 · 1 comment

Comments

@tounsi67
Copy link

I build one example from the depot git, in Node : Depot/test/app1

Like you can see it
buildtestapp1

But when I run it with NW, it crashed.

screenhunter_81 dec 16 15 39

index.js :
/********************************/
var binary = require('node-pre-gyp');
var path = require('path')
var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));
var binding = require(binding_path);

require('assert').equal(binding.hello(),"hello");
/******************************/

package.json
/********************************/
{
"name": "node-pre-gyp-test-app1",
"author": "Dane Springmeyer ",
"description":"node-pre-gyp test",
"repository" : {
"type" : "git",
"url" : "git://github.com/mapbox/node-pre-gyp.git"
},
"version": "0.1.0",
"main": "./index.js",
"binary": {
"module_name": "app1",
"module_path": "./lib/binding/",
"host":"https://node-pre-gyp-tests.s3-us-west-1.amazonaws.com"
},
"scripts": {
"install":"node-pre-gyp install --fallback-to-build",
"test":"node index.js"
}
}

/********************************/

In the folder ./lib/binding/ I have a file app1.node.

What I am missing ?

Thank you in advance for your help.

Windows 7 64 bit
NW 0.11.1

@springmeyer
Copy link
Contributor

I recommend not using the app1 test with node-webkit - it is only for testing node.js. Also don't use node-webkit 0.11.x - I would recommend sticking to 0.10.x as per TryGhost/node-sqlite3#404. And... if you are looking for a good app to test with node-webkit 0.10.x try node-sqlite3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants