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: 无法引入模块 child_process #675

Open
xiaoxiaoqing-win opened this issue Dec 20, 2022 · 0 comments
Open

Uncaught Error: 无法引入模块 child_process #675

xiaoxiaoqing-win opened this issue Dec 20, 2022 · 0 comments

Comments

@xiaoxiaoqing-win
Copy link

xiaoxiaoqing-win commented Dec 20, 2022

env:

  • electron 13.6.9
  • node-pre-gyp 1.0.10

code:

const path = require('path');
const binary = require('@mapbox/node-pre-gyp');
const bindingPath = binary.find(path.resolve(path.join(__dirname, '../package.json')));
const binding = require(bindingPath);

like above, I will get an error like this:
image

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

1 participant