Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

wrangler binary is not complete when installing using npm #2148

@hrz6976

Description

@hrz6976

🐛 Bug report

Describe the bug

After an installation with npm, wrangler gave me this error:

Error: spawnSync C:\Users\{user}\.wrangler\bin\wrangler ENOENT

Digging into this, I found the wrangler binary in {user}/.wrangler is smaller than what it should be (7192KB/13646KB). Wrangler worker fine after substituting the binary from https://workers.cloudflare.com/get-npm-wrangler-binary/1.19.5/x86_64-pc-windows-msvc.

However, I did not encounter this issue when configuring wrangler on my mac days before. Maybe it is something with the network connection?

Reproduce the bug

A list of steps to reproduce the bug.

run npm i @cloudflare/wrangler -g

Expected behavior

wrangler binary should be complete and running.

Environment and versions

Fill out the following information about your environment.

  • operating system: Windows 10 Pro x64 21H2
  • output of wrangler -V: 1.19.5
  • output of node -v: v14.15.1
  • content of wrangler.toml: not required to reproduce

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions