Sara
Sara

Reputation: 43

ENOTFOUND registry.yarnpkg.com error while running yarn install

Usually I run yarn install command, it works fine without any issues. But now, while running with same command I'm facing below error:

Error an unexpected error occurred,  "https://registry.yarnpkg.com/@babel/core/-/core-7.9.0.tgz" get addrinfo ENOTFOUND registry.yarnpkg.com

I have checked in both windows and Mac the same error is occurring.

Upvotes: 4

Views: 17808

Answers (1)

Aziza Kasenova
Aziza Kasenova

Reputation: 1571

Upgrade yarn (just in case it's not), then delete node_modules and yarn.lock. Try running yarn install again.

Upvotes: 5

Related Questions