File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,18 @@ function isWindows() {
14
14
*/
15
15
function install ( cwd ) {
16
16
return new Promise ( ( resolve , reject ) => {
17
- const suffix = isWindows ( ) ? '.cmd' : '' ;
17
+ const suffix = isWindows ( ) ? '.cmd' : ''
18
18
const cmd = ( isYarn ( ) ? 'yarn' : 'npm' ) + suffix
19
- const ps = require ( 'child_process' ) . spawn ( cmd , [ 'install' ] , { cwd, stdio : 'inherit' } ) ;
19
+ const ps = require ( 'child_process' ) . spawn ( cmd , [ 'install' ] , { cwd, stdio : 'inherit' } )
20
20
ps . on ( 'close' , ( code ) => {
21
21
if ( code !== 0 ) {
22
22
reject ( code )
23
- console . error ( `依赖自动安装出错${ code } ,可手动安装!` ) ;
23
+ console . error ( `依赖自动安装出错${ code } ,可手动安装!` )
24
24
} else {
25
- console . log ( ` 依赖安装完成!` ) ;
25
+ console . log ( ' 依赖安装完成!' )
26
26
resolve ( )
27
27
}
28
- } ) ;
28
+ } )
29
29
} )
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments