Failed to replace env in config using Bash & NPM
问题 I'm trying to use a private NPM module in my application, and need to set appropriate NPM access tokens so that third-party tools (Heroku and CI) can access, and install the module. I have the following line set in my ~/.bash_profile : export NPM_TOKEN="XXXXX-XXXXX-XXXXX-XXXXX" and then in the /path/to/app/.npmrc I have //registry.npmjs.org/:_authToken=${NPM_TOKEN} However, whenever I open my terminal, I get the following error on startup: Error: Failed to replace env in config: ${NPM_TOKEN}