jsr-io / jsr-npm

A cli tool to make installing packages form jsr.io in node easy
https://npmjs.com/package/jsr
MIT License
95 stars 13 forks source link

JSR Command fails on Windows #98

Closed louiss0 closed 1 month ago

louiss0 commented 2 months ago

OS: Windows Package Manager: pnpm

I tried to run jsr using npm dlx jsr publish but I got this

 npx jsr publish --dry-run
Need to install the following packages:
jsr@0.12.4
Ok to proceed? (y) Y

Downloading JSR binary...
[00:00] [#################################################>] 37.2 MiB/37.6 MiB
'C:\Users\Venel' is not recognized as an internal or external command,
operable program or batch file.
Child process exited with: 1

It has something to do with windows path but I don't know if I can fix this I might have to install jsr instead. Link to minimal reproducible example: https://github.com/louiss0/dummy-jsr

marvinhagemeister commented 1 month ago

Tried to reproduce the described error on my windows machine, but I'm not able to. It works as expected and publishes the package.

louiss0 commented 1 month ago

Tried to reproduce the described error on my windows machine, but I'm not able to. It works as expected and publishes the package.

I realized that it has something to do with the path.

The path on Windows is.

C:\Users\Venel Louis\Desktop
marvinhagemeister commented 1 month ago

Tried with a folder that contains spaces, but still can't reproduce it. Publishing works as expected. Tried both with PowerShell and the old cmd.exe.

louiss0 commented 1 month ago

I guess it had something to do with my computer