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 0d0247c commit 4eab8b2Copy full SHA for 4eab8b2
src/utils/env.js
@@ -14,18 +14,18 @@ function isWindows() {
14
*/
15
function install(cwd) {
16
return new Promise((resolve, reject) => {
17
- const suffix = isWindows() ? '.cmd' : '';
+ const suffix = isWindows() ? '.cmd' : ''
18
const cmd = (isYarn() ? 'yarn' : 'npm') + suffix
19
- const ps = require('child_process').spawn(cmd, ['install'], { cwd, stdio: 'inherit' });
+ const ps = require('child_process').spawn(cmd, ['install'], {cwd, stdio: 'inherit'})
20
ps.on('close', (code) => {
21
if (code !== 0) {
22
reject(code)
23
- console.error(`依赖自动安装出错${code},可手动安装!`);
+ console.error(`依赖自动安装出错${code},可手动安装!`)
24
} else {
25
- console.log(`依赖安装完成!`);
+ console.log('依赖安装完成!')
26
resolve()
27
}
28
- });
+ })
29
})
30
31
0 commit comments