question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Internal proxy registry can't get latest version of code-frame.

See original GitHub issue

Hi guys, this is might be not related to @babel/code-frame. But this is only case I recently faced, so I think there is something different in how the package published.

We have private proxy repository which saves all installed packages from NPM.

With latest release of @babel/code-frame I started to get error during npm update:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/code-frame@7.8.3
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

I did quick check of our proxy and noticed that it actually has 7.8.0 as latest:

{
    "users": {
        "fangbot": true
    },
    "readme": "# @babel/code-frame\n\n> Generate errors that contain a code frame that point to source locations.\n\nSee our website [@babel/code-frame](https://babeljs.io/docs/en/next/babel-code-frame.html) for more information.\n\n## Install\n\nUsing npm:\n\n```sh\nnpm install --save-dev @babel/code-frame\n```\n\nor using yarn:\n\n```sh\nyarn add @babel/code-frame --dev\n```\n",
    "homepage": "https://babeljs.io/",
    "dist-tags": {
        "latest": "7.8.0"
    },
   ...
}

The problem is that I also checked other Babel plugins and they “in sync” as expected and have 7.8.3 as latest.

So I’m not sure how to address this issue, maybe there is some specificity in how this package distributed or something wasn’t done ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
JLHwungcommented, Jan 14, 2020

Both @babel/code-frame@7.8.3 and @babel/plugin-proposal-nullish-coalescing-operator@7.8.3 have been published to npm https://www.npmjs.com/package/@babel/code-frame https://www.npmjs.com/package/@babel/plugin-proposal-nullish-coalescing-operator

Frankly speaking we could not control the cache policy of third party npm registry, but typically they will be resolved after couple of hours or days.

I have tagged this issue with i: npm cache and you can refer to the similar issues back when we published 7.7 or old versions.

I will close the issue now as only time can resolve this issue. Feel free to reopen it if you didn’t see a new version after couple of days.

0reactions
Lighttreecommented, Jan 15, 2020

Thanks. Today npm update / install back to normal. Seems that it takes some time to get latest version information. I was thinking that npm update / install will force this, but seems that it is not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot npm install jest Error: 404 Not Found: @babel/code ...
I can run npm view @babel/code-frame versions and see the versions but no matter how I try to install @babel/code-frame it fails with...
Read more >
Nexus as NPM proxy repository display old packages
I'm using Nexus for 3rd parties NPM content and I can see that some packages doesn't include updated version list. for example "npm...
Read more >
Cannot locate the Internet or proxy server when selecting ...
Error message when selecting hyperlink in Office: "Cannot locate the Internet ... The registry path doesn't depend on your Office version.
Read more >
Configure SSM Agent to use a proxy for Windows Server ...
This side-by-side version of SSM Agent is compatible with your instances created from earlier Windows Amazon Machine Images (AMIs) and allows you to...
Read more >
npm ERR! network getaddrinfo ENOTFOUND - Stack Overflow
Maybe it's because the proxy do not stand for https. What I do is clear the proxy content of ~/.npmrc, or use npm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found