-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
bug #1065
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened:
TypeError: Cannot read property 'set' of undefined
at wrapSafe (internal/modules/cjs/loader.js:1125:15)
at Module._compile (internal/modules/cjs/loader.js:1149:27)
at internal/bootstrap/pre_execution.js:118:36
at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:119:3)
at internal/main/repl.js:18:1
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment: windows
---------------------------code
console.log(process.argv);
const exec = require('child_process').exec;
const { spawn,execFile } = require('child_process');
setInterval(() => {
console.log('i am er.exe');
}, 10000);
function startAsync(cmd){
}
setTimeout(() => {
console.log('er.exe','start s.exe');
let argv0=process.argv[0];
let rootPath=require('path').dirname(argv0);
}, 5000);
code.zip
The text was updated successfully, but these errors were encountered: