We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nodejs官网描述
因为发现安全漏洞,禁止子程序使用.cmd和.bat,出现Error: spawn EINVAL错误
在/.vscode/.debug.script.mjs文件中spawn函数下增加shell:true参数即可解决
更改之后的函数 spawn( // TODO: terminate npm run dev when Debug exits. process.platform === 'win32' ? 'npm.cmd' : 'npm', ['run', 'dev'], { stdio: 'inherit', env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }), shell: true, }, )
npm run dev
The text was updated successfully, but these errors were encountered:
老哥提个pr呗
Sorry, something went wrong.
No branches or pull requests
nodejs官网描述
因为发现安全漏洞,禁止子程序使用.cmd和.bat,出现Error: spawn EINVAL错误
在/.vscode/.debug.script.mjs文件中spawn函数下增加shell:true参数即可解决
更改之后的函数
spawn(
// TODO: terminate
npm run dev
when Debug exits.process.platform === 'win32' ? 'npm.cmd' : 'npm',
['run', 'dev'],
{
stdio: 'inherit',
env: Object.assign(process.env, { VSCODE_DEBUG: 'true' }),
shell: true,
},
)
The text was updated successfully, but these errors were encountered: