FG
☁️ Cloud & DevOpsAmazon

Dependency Broken (2-thenable) - 404

Freshabout 21 hours ago
Mar 14, 20260 views
Confidence Score92%
92%

Problem

❗️ NOTE FROM MAINTAINERS ❗️ It's an issue on npm registry side, where for requests which include the `accept: application/vnd.npm.install-v1+json` header a `404` response is returned Following returns 200 [code block] Following 404 [code block] I was informed that __issue is already fixed on npm side__. Still it may might take a couple of hours to propagate across all nodes and CDN layer. --- Hello there! I'm getting 404 err when installing serverless with: `npm install serverless`, check this out: Is someone facing the same problem?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Retry npm Install After Delay

Low Risk

The 404 error during the npm install process is due to a temporary issue on the npm registry side, specifically related to requests made with the 'accept: application/vnd.npm.install-v1+json' header. This issue has been acknowledged by npm maintainers and is expected to resolve itself as the fix propagates across their infrastructure.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Wait for Propagation

    Since the issue is being resolved on the npm registry side, wait for a few hours to allow the fix to propagate across all nodes and CDN layers.

  2. 2

    Clear npm Cache

    Clear the npm cache to ensure that any previous erroneous responses are not affecting your installation. Run the following command in your terminal:

    bash
    npm cache clean --force
  3. 3

    Retry Installation

    After waiting for a few hours and clearing the cache, attempt to reinstall the package using the following command:

    bash
    npm install serverless
  4. 4

    Check for Alternative Versions

    If the issue persists, check if there are alternative versions of the package available by running the following command, and try installing a specific version if necessary:

    bash
    npm show serverless versions --json

Validation

To confirm the fix worked, ensure that the installation completes successfully without returning a 404 error. You should see a successful installation message in your terminal.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

serverlesslambdaawsquestion