Open q3e opened 6 years ago
@fatahn that happens because NPM_TOKEN
is not specified.
cd to root, run: source .bashrc (and make sure your .bashrc file is correctly configured)
I think NPM_TOKEN
should expand to ""
by default. In our case we use the NPM_TOKEN to have our CI server publish new private packages. For other uses (locally), like for example yarn outdated
it is not needed. As it is, every developer need to set NPM_TOKEN=''
in their bash profile, just to make yarn work.
Any solution for this? Alot of CI/CD deployments are blocked because of this
I ran into this with yarn v1.22.19. I understand the error message is saying the NPM_TOKEN isn't set, however... as a user, I'm not sure why that would be. I was trying to run yarn
in a project I hadn't run before and was getting this error.
A workaround I found is this: NPM_TOKEN= yarn
Come on; you are better that this! 😨
What is the current behavior? same as https://github.com/npm/npm/issues/19169
Yarn error log: