How to check if a particular npm package is working?

2,570

I noticed my work blocked certain packages, possibly based on the name, or throttling, whatever. At home they worked fine. You'll have to get around your proxy since the error that you're getting back is the indication that the package is not loading. The NPM status page is where to go to make sure npm is still serving up packages, so you had that right.

Since it was the entire fetch that failed, I would guess that's your main issue (access via proxy).

Here is more on NPM and proxy issues: https://github.com/npm/npm/issues/2119

and how one person fixed it: "message failed to fetch from registry" while trying to install any module

If you can't access the registry (NPM down), then you could also try the direct IP approach: NPM fetch failed

Share:
2,570

Related videos on Youtube

StuperUser
Author by

StuperUser

Updated on November 26, 2022

Comments

  • StuperUser
    StuperUser over 1 year

    I'm running

    $npm install

    to install the dependent packages out of a package.json file, but some packages in particular are failing to install.

    Since npm's status page seems to be for npm in general, is there any way to check the status of a particular package?

    • Fabrício Matté
      Fabrício Matté about 10 years
      Can you post the error/warning messages?
    • StuperUser
      StuperUser about 10 years
      @FabrícioMatté an example is: npm ERR! fetch failed https://registry.npmjs.org/filesize/-/filesize-1.7.9.tgz
    • Fabrício Matté
      Fabrício Matté about 10 years
      npm install [email protected] works fine for me. Maybe it is a problem with your network/gateway/proxy?
    • StuperUser
      StuperUser about 10 years
      Could be. Since there's some other packages failing. Is there a way to check the status of the package without having someone else try to install them?
    • Fabrício Matté
      Fabrício Matté about 10 years
      The URL which reportedly failed to fetch should be fetchable through the browser too. registry.npmjs.org/filesize/-/filesize-1.7.9.tgz