Code Monkey home page Code Monkey logo

Comments (7)

larixer avatar larixer commented on September 3, 2024 1

The possible workaround is to initalize dnsCache like this:

const dnsCache = new Map([[
  'cached-lookup:localhost:4', JSON.stringify({
    value: [{
      address: '127.0.0.1',
      ttl: 268,
      family: 4,
      expires: Date.now() + 24 * 3600 * 1000,
    }],
    expires: Date.now() + 24 * 3600 * 1000,
  }),
]]);

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024 1

But the latest tag on npm is assigned to [email protected], is this intended?

No. Doesn't npm update the latest tag automatically? I haven't altered with it in any way. Looking at this now.

from cacheable-lookup.

larixer avatar larixer commented on September 3, 2024 1

@szmarczak Cool, thank you very much!

from cacheable-lookup.

larixer avatar larixer commented on September 3, 2024

@szmarczak Any thoughts about this issue, we are seeing this problem when running Yarn 2 integration tests on GitHub Actions Mac OS X matrix target.

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024

Sorry for replying this late, somehow I didn't get a notification for the two previous comments 🤔

Please make sure you're running [email protected]. It reads the hosts file.

  1. What is the path to your hosts file? Is it /etc/hosts?
  2. Please copy the whole contents of the file and paste it here. Or just reply whether it has defined localhost or not.

from cacheable-lookup.

larixer avatar larixer commented on September 3, 2024

@szmarczak Thanks! Indeed it works with 4.1.2. But the latest tag on npm is assigned to [email protected], is this intended?

$ yarn info cacheable-lookup
yarn info v1.22.4
{
  name: 'cacheable-lookup',
  'dist-tags': {
    latest: '2.0.1'
  },

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024

@larixer Fixed. The latest points now to 4.1.2.

from cacheable-lookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.