@@ -83,12 +83,12 @@ function convertConfig(lt_config, outputFilePath) {
83
83
84
84
for ( let key in obj . run_settings . npm_dependencies ) {
85
85
he_yaml . pre . push (
86
- "npm install " + key + "@" + obj . run_settings . npm_dependencies [ key ]
86
+ "npm install " + key + "@" + obj . run_settings . npm_dependencies [ key ] + " --legacy-peer-deps"
87
87
) ;
88
88
}
89
89
90
- if ( obj . run_settings . npm_dependencies ) {
91
- he_yaml . pre . push ( "npm install" ) ;
90
+ if ( ! obj . run_settings . npm_dependencies ) {
91
+ he_yaml . pre . push ( "npm install --legacy-peer-deps " ) ;
92
92
}
93
93
94
94
if ( obj . tunnel_settings && obj . tunnel_settings . tunnel_name ) {
@@ -132,6 +132,8 @@ function convertConfig(lt_config, outputFilePath) {
132
132
133
133
if ( obj . run_settings . useNodeVersion ) {
134
134
he_yaml . runtime = { language : "node" , version : obj . run_settings . useNodeVersion } ;
135
+ } else {
136
+ he_yaml . runtime = { language : "node" , "version" : "16.18.1" } ;
135
137
}
136
138
137
139
if ( obj . run_settings . max_duration ) {
@@ -163,11 +165,11 @@ function convertConfig(lt_config, outputFilePath) {
163
165
}
164
166
165
167
if ( obj . run_settings . cypress_version ) {
166
- he_yaml . pre . push ( "npm install cypress@" + obj . run_settings . cypress_version ) ;
168
+ he_yaml . pre . push ( "npm install cypress@" + obj . run_settings . cypress_version + " --legacy-peer-deps" ) ;
167
169
}
168
170
169
171
if ( obj . run_settings . npm_dependencies . length == 0 && ! obj . run_settings . cypress_version ) {
170
- he_yaml . pre . push ( "npm install" ) ;
172
+ he_yaml . pre . push ( "npm install --legacy-peer-deps " ) ;
171
173
}
172
174
173
175
batcher . get_spec_files ( obj . run_settings . specs , obj . run_settings . exclude_specs ) . then ( function ( specs ) {
0 commit comments