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

Files from node modules not found from within the same node module. #1057

Closed
mschaaf opened this issue Sep 1, 2013 · 4 comments
Closed

Files from node modules not found from within the same node module. #1057

mschaaf opened this issue Sep 1, 2013 · 4 comments

Comments

@mschaaf
Copy link

mschaaf commented Sep 1, 2013

We use the nodejs module polo in a application. This module starts a js file (monitor,js) by using cp_fork and gives only the file name as an argument. On startup node-webkit gives the following error "Failed to unzip the package file: /app.nw/monitor.js" but the file is located under node_modules/polo/monitor.js
We wouldn't like to change the packaging because this is the default npm package handling and doesn't need any extra work by maintaining the 3rd party modules.

How can we solve this?
Is this a bug in node-webkit or the 3rd party module?

@mschaaf
Copy link
Author

mschaaf commented Sep 1, 2013

Also if I change the path to the correct one (/app.nw/node_modules/polo/monitor.js) I get this error message.

@kingFighter
Copy link
Contributor

@mschaaf It seems that child_process.fork('monitor.js') will fork another nw, then it will try parse the file package.json

@rogerwang
Copy link
Member

@kingFighter child_process.fork is broken : #213

@rogerwang
Copy link
Member

close as the duplicate

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

3 participants