Skip to content

Pi installed with bun is using node under the hood #5365

Description

@remixer-dec

What happened?

After seeing a message that Node 20 is no longer supported I decided to uninstall and reinstall pi with bun.

However this causes

~/.bun/install/global/node_modules/undici/lib/web/cache/cachestorage.js:20
    webidl.util.markAsUncloneable(this)
                ^

TypeError: webidl.util.markAsUncloneable is not a function

becuase pi executable is still using
#!/usr/bin/env node
despite being installed in ~/.bun/bin/pi

suggested fix:
use #!/usr/bin/env bun for bun installations

Steps to reproduce

Expected behavior

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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