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()
5555
5656 DeployEmbeddedElectronFiles . Do ( tempPath ) ;
5757
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+ }
6071
6172 string path = Path . Combine ( tempPath , "node_modules" , ".bin" ) ;
6273
You can’t perform that action at this time.
0 commit comments