Error 404 on access JSR packge of @std/csv
Describe the bug
I'm trying to install the package @std/csv using Bun and JSR bun it is thowing a 404 error.
Steps to Reproduce Run bunx jsr add @std/csv
Expected behavior Install succefully @std/csv package
Environment
- bun 1.1.31
- Windows 10
- @std/csv 1.0.3
The download request needs to go to https://npm.jsr.io/@std/csv/** instead of https://registry.npmjs.org/@std/csv/** to be able to install JSR dependencies.
I guess you have custom configuration in .npmrc, and that prevents jsr command from working correctly. Can you add the below line to your .npmrc?
@jsr:registry=https://npm.jsr.io
(If you don't have .npmrc file, jsr command automatically writes the above line to .npmrc)
Thank you, Yoshida!
I’m not exactly sure what happened, my .npmrc file did have the line you mentioned, but even so, when running bun install or bunx jsr add @std/csv, I kept encountering that error. So, I simply removed @std/csv using bun rm @std/csv, deleted the .npmrc file, and reinstalled the package with bunx jsr add @std/csv. After that, it installed correctly.