Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Yarn in official docker image fails to install private modules (404) #3213

Closed
razor-x opened this issue Apr 21, 2017 · 2 comments
Labels

Comments

@razor-x
Copy link

razor-x commented Apr 21, 2017

Encountering a pretty serious regression that has broken all our CI builds with no clear workaround (other then updating all builds to install and use a local fixed version of yarn 0.22.0, which is far from ideal) .

Looks like the node docker images were all updated today with yarn 0.23.2 which is about when I started seeing this issue on my CI tool.

Yarn will not install any private node modules even with a valid token in ~/.npmrc (gives 404 errors). The new images updated from yarn v0.22.0 to v0.23.2. I'm using the node:boron image. Builds that previously passed now fail with the error.

I'm Using 0.23.2 locally with the same token in ~/.npmrc without issue, so i suspect there is some issue with the docker env and yarn 0.23.2. Installing and running a local version of yarn v0.22.0 inside the container does not show the issue (installing v0.23.2 does).

I cross posted this issue as I'm not sure where the regression lives (nodejs/docker-node#386).

@rrdlpl
Copy link

rrdlpl commented Apr 26, 2017

This is happening to me in linux with v0.23.2 without docker

@sedrik
Copy link

sedrik commented Apr 27, 2017

I ran into the same issue, it so happens that if you have .npmrc in your working directory it works.

/app # yarn config list                                                      
yarn config v0.23.2                                                          
info yarn config                                                             
{ ... }                                                        
info npm config                                                              
{ version: '0.23.2',                                                         
  loglevel: 'info' }                                                         
Done in 0.03s.          
                                                     
/app # cp ~/.npmrc .            
                                             
/app # yarn config list                                                      
yarn config v0.23.2                                                          
info yarn config                                                             
{ ... }                                                        
info npm config                                                              
{ '//registry.npmjs.org/:_authToken': <TOKEN>,
  version: '0.23.2',                                                         
  loglevel: 'info' }                                                         
Done in 0.02s.                                                               

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants