cli icon indicating copy to clipboard operation
cli copied to clipboard

react native upgrade command need proxy support

Open biaji opened this issue 3 years ago • 2 comments

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

biaji avatar Apr 21 '22 02:04 biaji

you can set proxy in terminal like this

youniaogu avatar Jul 19 '22 05:07 youniaogu

you can set proxy in terminal like this

I'm not sure about this. As I practiced, It doesn't work.

biaji avatar Aug 15 '22 13:08 biaji

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.

github-actions[bot] avatar Nov 26 '22 03:11 github-actions[bot]

same problem

M45ter avatar Dec 23 '22 04:12 M45ter

Same problem here.

My terminal is all set up with proxy variables and everything works fine, but react-native cli.

hgsantana avatar Mar 15 '23 21:03 hgsantana

same problem

cnhuz avatar Mar 23 '24 08:03 cnhuz