Open wundersolutions-juanjo opened 3 months ago
Try using the forward slash '/' instead
Or you can also create a bash/powershell script to run the command bun C:\\NodeExpressServer\\server.js ./www
to start your server
This is not a windows issue, it also happens on other platforms and can be very confusing.
This is also a security problem, as it makes it impossible to use double quotes to prevent shell injection in the package.json script
What version of Bun is running?
1.1.13+bd6a60512
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
"start": "bun C:\\NodeExpressServer\\server.js ./www"
bun run start
error: Module not found "C:NodeExpressServerserver.js"
npm run start
takes it's time, but eventually runs fine :PWhat is the expected behavior?
bun run
should be consistent withnpm run
What do you see instead?
For the provided example,
bun run
requires another "round" of escaping backslashes, turning it into"start": "bun C:\\\\NodeExpressServer\\\\server.js ./www"
Additional information
No response