Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slash in npm registry URL being replaced with %2f #117

Closed
tshaynik opened this issue Oct 8, 2021 · 2 comments
Closed

slash in npm registry URL being replaced with %2f #117

tshaynik opened this issue Oct 8, 2021 · 2 comments

Comments

@tshaynik
Copy link
Contributor

tshaynik commented Oct 8, 2021

I'm seeing an issue in dependencies with names that look like @react-native-community/cli in the package-lock.json, with resolved URLs that look like "https://registry.npmjs.org/@react-native-community/cli/-/cli-3.2.1.tgz"

       > > /build/node_modules/.hooks/preinstall
       > patching script interpreter paths in .
       > npm ERR! code ENOTCACHEDPackageMetaData error for stacktrace[0m
       > npm ERR! request to https://registry.npmjs.org/@react-native-community%2fcli failed: cache mode is 'only-if-cached' but no cached response available.

For some reason, / in the name is getting escaped into a %2f, causing the URL to not resolve and npmlock2nix to fail.

@tshaynik
Copy link
Contributor Author

tshaynik commented Oct 8, 2021

This appears to be related to this issue in npm: npm/npm#16380
I'm currently looking for a workaround.

@whentze
Copy link

whentze commented Aug 29, 2022

@tshaynik this has been closed, but we're still running into it. Did you end up finding a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants