Open hem-brahmbhatt opened 6 years ago
yarnSetup task fails with Error: Failed to replace env in config: ${NPM_TOKEN} when:
yarnSetup
Error: Failed to replace env in config: ${NPM_TOKEN}
~/.npmrc
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
$NPM_TOKEN
.bash_profile
Allow environment variables to be included during the yarnSetup task.
i.e.
yarnSetup { environment = ['NPM_TOKEN': System.getenv('NPM_TOKEN')] }
Problem
yarnSetup
task fails withError: Failed to replace env in config: ${NPM_TOKEN}
when:~/.npmrc
exists with the following contents://registry.npmjs.org/:_authToken=${NPM_TOKEN}
$NPM_TOKEN
is available in your.bash_profile
Potential solution
Allow environment variables to be included during the
yarnSetup
task.i.e.