File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,19 @@ public Task<bool> ExecuteAsync()
55
55
56
56
DeployEmbeddedElectronFiles . Do ( tempPath ) ;
57
57
58
- Console . WriteLine ( "Start npm install..." ) ;
59
- ProcessHelper . CmdExecute ( "npm install" , tempPath ) ;
58
+ var checkForNodeModulesDirPath = Path . Combine ( tempPath , "node_modules" ) ;
59
+
60
+ if ( Directory . Exists ( checkForNodeModulesDirPath ) == false )
61
+ {
62
+ Console . WriteLine ( "node_modules missing in: " + checkForNodeModulesDirPath ) ;
63
+
64
+ Console . WriteLine ( "Start npm install..." ) ;
65
+ ProcessHelper . CmdExecute ( "npm install" , tempPath ) ;
66
+ }
67
+ else
68
+ {
69
+ Console . WriteLine ( "Skip npm install, because node_modules directory exists in: " + checkForNodeModulesDirPath ) ;
70
+ }
60
71
61
72
string path = Path . Combine ( tempPath , "node_modules" , ".bin" ) ;
62
73
You can’t perform that action at this time.
0 commit comments