Skip to content

Commit 309ecff

Browse files
committed
Use correct npm bin name depending on the OS
1 parent 22c3e44 commit 309ecff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/lib/install-script-dependencies.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ process.env.ELECTRON_CUSTOM_VERSION = CONFIG.appMetadata.electronVersion;
99

1010
module.exports = function(ci) {
1111
console.log('Installing script dependencies');
12+
const npmBinName = process.platform === 'win32' ? 'npm.cmd' : 'npm';
1213
childProcess.execFileSync(
13-
'npm',
14+
npmBinName,
1415
['--loglevel=error', ci ? 'ci' : 'install'],
1516
{ env: process.env, cwd: CONFIG.scriptRootPath }
1617
);

0 commit comments

Comments
 (0)