npm2nix icon indicating copy to clipboard operation
npm2nix copied to clipboard

Fix url encoding - only workaround so far

Open johbo opened this issue 8 years ago • 0 comments

Got a problem with scoped packages, they have a name like @type/clone, got the following in the output:

http 404 https://registry.npmjs.org/@types/clone/
Error during fetch: Error getting registry info for @types/clone: Error: Not found : @types

When I tried the URL in the browser, I found that changing it to @types%2fclone/ works fine.

At the moment the attached change is just a workaround which made it work for me. I am quite sure that this is not the best approach though. Hope I can get some hint how to improve it.

johbo avatar Aug 23 '16 12:08 johbo