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

Uncaught Error: The specified module could not be found #2951

Closed
slikel opened this issue Jan 16, 2015 · 9 comments
Closed

Uncaught Error: The specified module could not be found #2951

slikel opened this issue Jan 16, 2015 · 9 comments

Comments

@slikel
Copy link

slikel commented Jan 16, 2015

I use the node-webkit version is 0.8.6.
I carried out the following command, received a app.exe:

copy /b nw.exe+app.nw app.exe

Then I run the app.exe,then appeared the following error:

Uncaught Error: The specified module could not be found.
C:\Users\ADMINI~1\AppData\Local\Temp\nw28072_22654\node_modules\hello.node 

Please help me.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@rogerwang
Copy link
Member

you should pack the module with your app as well

@slikel
Copy link
Author

slikel commented Jan 16, 2015

my app contains the module file.
app.nw structure is as follows
a
module file under the node_modules

 var tmp = require('hello');
 console.log(tmp.hello());

@tommoor
Copy link

tommoor commented Jan 16, 2015

I believe each module should have it's own folder, package.json etc - make sure you stick to the conventions.

@slikel
Copy link
Author

slikel commented Jan 16, 2015

you are right.i should stick to the conventions,but the problem still there

@sword36
Copy link

sword36 commented Aug 16, 2015

Your .exe file should be called "nw.exe"

@wadezha
Copy link

wadezha commented Feb 25, 2016

why must be called "nw.exe", I met this problem too, if I change .exe file nw.exe, it work well, else not. if I want to rename .exe file, how can I do?

@slikel
Copy link
Author

slikel commented Feb 29, 2016

@wadecha
Sorry, I have no solution.This may be a design flaw

@wadezha
Copy link

wadezha commented Feb 29, 2016

I have solved.
#199 have solution, and someone write a patching in http://developers.ironsrc.com/rename-import-dll/ this website

@slikel
Copy link
Author

slikel commented Feb 29, 2016

@wadecha
Good. Thanks

@slikel slikel closed this as completed Feb 29, 2016
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

5 participants