deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

Error 404 on access JSR packge of @std/csv

Open david-sfernandes opened this issue 2 years ago • 2 comments

Describe the bug I'm trying to install the package @std/csv using Bun and JSR bun it is thowing a 404 error. image image

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

david-sfernandes avatar Oct 21 '24 16:10 david-sfernandes

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)

kt3k avatar Oct 22 '24 06:10 kt3k

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.

david-sfernandes avatar Oct 22 '24 16:10 david-sfernandes