You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
Run-script doesn't seem to be setting environment variables when using WSL, but works fine for Mingw64.
Maybe it has to do with process.platform being set to 'linux' in contrast to Mingw64 setting it to 'win32'.
Node: 8.11.1
NPM: 5.8.0
OS: Windows 10 64bit
Steps to reproduce:
npm config set script-shell C:\\Windows\\System32\\bash.exe
Add to package.json: "scripts": { "printenv": "printenv" }
Hi there,
Run-script doesn't seem to be setting environment variables when using WSL, but works fine for Mingw64.
Maybe it has to do with
process.platform
being set to'linux'
in contrast to Mingw64 setting it to'win32'
.Node:
8.11.1
NPM:
5.8.0
OS: Windows 10 64bit
Steps to reproduce:
npm config set script-shell C:\\Windows\\System32\\bash.exe
"scripts": { "printenv": "printenv" }
npm run printenv
Result:
Expected:
npm_config_x
andnpm_package_x
variables to also be set, so I can use them inside of run-script commands.The text was updated successfully, but these errors were encountered: