openethereum/js-libs

Failed to replace env in config: ${NPM_TOKEN}

ltfschoen opened this issue · 3 comments

I just merged the latest changes from 'master' branch.
When I run yarn, it gives me the NPM_TOKEN error again

scon @ ~/code/src/paritytech/js-libs - [luke-81-electron-4] $ yarn;
yarn install v1.12.3
error An unexpected error occurred: "Failed to replace env in config: ${NPM_TOKEN}".
info If you think this is a bug, please open a bug report with the information provided in "/Users/scon/code/src/paritytech/js-libs/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

To fix the issue I run export NPM_TOKEN=''.

On your branch https://github.com/paritytech/js-libs/tree/luke-81-electron-4, I see a .npmrc file, which isn't on master. I'm pretty sure the error will go away if you remove that file.

Thank you it worked when I ran the following:

git rm .npmrc;
unset NPM_TOKEN;
yarn;

@ltfschoen l
thanks that works for me