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

You appear to be offline. Falling back to the local Yarn cache. #4953

Closed
8483 opened this issue Sep 2, 2018 · 1 comment
Closed

You appear to be offline. Falling back to the local Yarn cache. #4953

8483 opened this issue Sep 2, 2018 · 1 comment

Comments

@8483
Copy link

8483 commented Sep 2, 2018

sudo npm i -g create-react-app
create-react-app app

Keeps giving this error no matter what I do.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

You appear to be offline.
Falling back to the local Yarn cache.

yarn add v1.3.2
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find any versions for "react" that matches "latest" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

I am indeed online.

@8483
Copy link
Author

8483 commented Sep 2, 2018

Solution: yarnpkg/yarn#3227

npm config set registry "https://registry.npmjs.org"

@8483 8483 closed this as completed Sep 2, 2018
@lock lock bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant