Skip to content

bun install . not working #5682

@mathiasrw

Description

@mathiasrw

What version of Bun is running?

1.0.1+31aec4ebe325982fc0ef27498984b0ad9969162b

What platform is your computer?

Darwin 21.6.0 arm64 arm

What steps can reproduce the bug?

Have a local repo that is a regular npm module with a "bin" path in package.json. Example:

git clone https://github.com/piuccio/cowsay.git
cd cowsay

What is the expected behavior?

I can install the npm module globally from my local copy by referencing the folder. If im in the root dir I can refer to the module with . or ./

bun install -g .

The command cowsay should now be globally available.

What do you see instead?

When running

bun install -g .

We get the error

bun add v1.0.1 (31aec4eb)

error: MissingPackageJSON

note: error occured while resolving .

Additional information

Bun for the win!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbun installSomething that relates to the npm-compatible client

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions