cli
cli copied to clipboard
react native upgrade command need proxy support
Describe the Feature
npx react native upgrade command does not support proxy, and throw error like:
info Fetching diff between v0.66.4 and v0.68.1...
error request to https://raw.githubusercontent.com/react-native-community/rn-diff-purge/diffs/diffs/0.66.4..0.68.1.diff failed, reason: connect ENETUNREACH 185.199.111.133:443
error Failed to fetch diff for [email protected]. Maybe it's not released yet?
Possible Implementations
Maybe we can detect proxy from env and use node-http-proxy-agent as fetch implement?
Related Issues
you can set proxy in terminal like this
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.
same problem
Same problem here.
My terminal is all set up with proxy variables and everything works fine, but react-native cli.
same problem