We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ae2d4 commit dabe5bbCopy full SHA for dabe5bb
src/extension/installer.ts
@@ -236,7 +236,8 @@ export class Installer extends EventEmitter implements IInstaller {
236
return new Promise<void>((resolve, reject) => {
237
let args = this.getInstallArguments(this.npm, this.url)
238
this.log(`Installing dependencies by: ${this.npm} ${args.join(' ')}.`)
239
- const child = child_process.spawn(this.npm, args, {
+ const cmd = process.platform === 'win32' ? `"${this.npm}"` : this.npm
240
+ const child = child_process.spawn(cmd, args, {
241
cwd: folder,
242
shell: process.platform === 'win32',
243
env: Object.assign(process.env, { NODE_ENV: 'production' })
0 commit comments