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

Using yarn in node:6.10.0 got warning You don't appear to have an internet connection #353

Closed
nickeljew opened this issue Mar 7, 2017 · 7 comments
Labels

Comments

@nickeljew
Copy link

Using image node:6.10.0
when run yarn, got the warning "You don't appear to have an internet connection",
and the process was blocked there and retried for a long time, but finally the installation process failed.
I trie many times, all the same.

@Starefossen
Copy link
Member

That doesn't sound so good. However, I think this should first be posted to the yarn issue tracker, as it might be somewhat related to yarnpkg/yarn#746

Also, you need to provide more information as to what plattform you are running this on as well as any configurations and command run that resulted in this problem.

@nickeljew
Copy link
Author

The docker environment is running on CentOS7. Yarn works fine in pure system, but only show that warning in docker.

@Starefossen
Copy link
Member

Does npm work as normal inside the Docker container under the same conditions?

@nickeljew
Copy link
Author

nickeljew commented Mar 7, 2017

Update test result as following:

  1. build an intermediate image first manually
    in this image, including 'RUN npm install -g pm2 node-gyp', the building process completed successfully.

  2. build the target image using the intermediate one built at step1
    When running 'yarn', I still got that warning, but this time the building completed successfully.
    Step 7/9 : RUN yarn
    ---> Running in 7dbcdcfcb8b9
    yarn install v0.21.3
    warning You don't appear to have an internet connection. Try the --offline flag to use the cache for registry queries.
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    warning There appears to be trouble with your network connection. Retrying...
    warning There appears to be trouble with your network connection. Retrying...
    warning There appears to be trouble with your network connection. Retrying...
    warning There appears to be trouble with your network connection. Retrying...
    [3/4] Linking dependencies...
    [4/4] Building fresh packages...
    Done in 450.00s.


I worked it out finally. However I still don't know why the preview tryouts all failed when I was trying to build the target image directly.
Fragments from the previous Dockerfile:
FROM node:6.10.0
WORKDIR .......
RUN npm install -g pm2
ADD .........
RUN yarn

One of the major difference is to install node-gyp globally, but in the preview tryouts, node-gyp is installed inside project.

@vladwing
Copy link

vladwing commented Apr 9, 2017

It appears to be related to this http://stackoverflow.com/questions/40186104/yarn-warning-on-docker-build. Either we need to patch yarn not to check interfaces or add a flag to ignore the check for online connectivity temporarily.

@chorrell chorrell added the yarn label Apr 20, 2017
@chorrell
Copy link
Contributor

Closing as a yarn issue.

@4nanook

This comment was marked as off-topic.

@nodejs nodejs locked as resolved and limited conversation to collaborators Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants