Skip to content

Failed to install dependencies #1983

Description

@ilakkmanoharan

Describe the bug

Failed to install dependencies
❯ npm install && npx next dev
npm error code ERR_INVALID_PROTOCOL
npm error Protocol "https:" not supported. Expected "http:"
npm error A complete log of this run can be found in: /home/.npm/_logs/2025-10-02T01_07_49_095Z-debug-0.log

Image

Codemode error.pdf

❯ npm install
npm error code ERR_INVALID_PROTOCOL
npm error Protocol "https:" not supported. Expected "http:"
npm error A complete log of this run can be found in: /home/.npm/_logs/2025-10-02T01_22_38_168Z-debug-0.log

Link to the blitz that caused the error

https://stackblitz.com/edit/stackblitz-starters-8mnj4kr8?file=app%2Flayout.tsx

Steps to reproduce

Open the project.
After Booting WebContainer, you will see the 'Installing dependencies' in red with the following message:

Failed to install dependencies

Booting WebContainer
Installing dependencies
Running start command

Expected behavior

dependencies should be installed succesfully.

Parity with Local

Screenshots

Codemode error.pdf

Platform

Browser name  = Safari
Full version  = 18.6
Major version = 18
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
performance.memory = undefined
Hash = 96435430

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions