Skip to content

Commit 31d8b62

Browse files
committed
Avoid npm warnings about the overridden node PATH
1 parent d3c68de commit 31d8b62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/fresh-terminal.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ export class TerminalInterceptor implements Interceptor {
377377
// Used by npm, for versions that don't support HTTP_PROXY etc
378378
'npm_config_proxy': `http://localhost:${proxyPort}`,
379379
'npm_config_https_proxy': `http://localhost:${proxyPort}`,
380+
// Stop npm warning about having a different 'node' in $PATH
381+
'npm_config_scripts_prepend_node_path': 'false',
380382

381383
// Trust cert when using OpenSSL with default settings
382384
'SSL_CERT_FILE': this.config.https.certPath,

0 commit comments

Comments
 (0)