Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.env.PATH issues #11182

Open
thewh1teagle opened this issue May 19, 2024 · 0 comments
Open

process.env.PATH issues #11182

thewh1teagle opened this issue May 19, 2024 · 0 comments
Labels
bug Something isn't working node.js Compatibility with Node.js APIs windows An issue that only occurs on Windows

Comments

@thewh1teagle
Copy link

What version of Bun is running?

1.1.7

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Create script with the following

const { spawn } = require("child_process")
process.env.PATH = `${process.env.PATH};C:\\vcpkg`
spawn('vcpkg.exe')

Change it to some path which contains binary file

What is the expected behavior?

After modifying process.env.PATH and adding new directory, when running shell command, binaries from that folder should be available on Windows (and possibly on other platforms)

What do you see instead?

bun run test.js
 Executable not found in $PATH: "vcpkg.exe"

Additional information

Happens on Windows, but maybe also on other platforms

@thewh1teagle thewh1teagle added the bug Something isn't working label May 19, 2024
@Electroid Electroid added windows An issue that only occurs on Windows node.js Compatibility with Node.js APIs labels May 20, 2024
@robobun robobun added node.js Compatibility with Node.js APIs and removed node.js Compatibility with Node.js APIs labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

3 participants