/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.63.0
script/lib/install-script-dependencies.js
17 строк
535 B
icecream17
Fix npm ENOENT error in install-script-runner-dependencies
27 фев 2022, 01:26
27 фев 2022, 01:26
790511a
Код
Авторство
О чём код?
'use strict'; const childProcess = require('child_process'); const CONFIG = require('../config'); // Recognised by '@electron/get', used by the 'electron-mksnapshot' and 'electron-chromedriver' dependencies process.env.ELECTRON_CUSTOM_VERSION = CONFIG.appMetadata.electronVersion; module.exports = function(ci) { console.log('Installing script dependencies'); childProcess.execFileSync( CONFIG.getNpmBinPath(ci), ['--loglevel=error', ci ? 'ci' : 'install'], { env: process.env, cwd: CONFIG.scriptRootPath } ); };