Closed eunjae-lee closed 4 years ago
I don't use npm
myself, except for the release process here I do setup the NPM_TOKEN
on my global env. Thanks for creating the issue tho!
I wasn't clear. I don't use npm normally, either.
For example, just running yarn lint
gets failed because of absence of NPM_TOKEN
on my global env. If this is not your personal project, and you're expecting contributions, you'll need to do something about it.
➜ yarn lint
yarn run v1.16.0
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/eunjaelee/workspace/dd/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I see! Thanks for sharing.
Any npm command like
npm install
causes an error like the following:Then, if I prepend a fake env var, ..
It works 😅
Maybe you should remove
.npmrc
from repo? I don't know what's the best.