0

ran the follwing command:

npm install -g react-native-cli 

The error:

25 silly fetchPackageMetaData Error: connect ETIMEDOUT 151.101.72.162:443
25 silly fetchPackageMetaData     at Object.exports._errnoException (util.js:1050:11)
25 silly fetchPackageMetaData     at exports._exceptionWithHostPort (util.js:1073:20)
25 silly fetchPackageMetaData     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
25 silly fetchPackageMetaData  error for react-native-cli { Error: connect ETIMEDOUT 151.101.72.162:443
25 silly fetchPackageMetaData     at Object.exports._errnoException (util.js:1050:11)
25 silly fetchPackageMetaData     at exports._exceptionWithHostPort (util.js:1073:20)
25 silly fetchPackageMetaData     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
25 silly fetchPackageMetaData   code: 'ETIMEDOUT',
25 silly fetchPackageMetaData   errno: 'ETIMEDOUT',
25 silly fetchPackageMetaData   syscall: 'connect',
25 silly fetchPackageMetaData   address: '151.101.72.162',
25 silly fetchPackageMetaData   port: 443 }

I think the issue is mostly about proxy: Also tried setting the proxy using command:

set HTTP_PROXY=http://your_proxy:your_port

Any help will be appreciated. Thanks

7
  • 2
    What error ? I can't guess Commented May 12, 2017 at 4:54
  • 1
    Possible duplicate of Is there a way to make npm install (the command) to work behind proxy?. Port 443 is SSL, so you need to set HTTPS_PROXY too. Commented May 12, 2017 at 4:59
  • 1
    What is your npm version Commented May 12, 2017 at 5:03
  • 1
    Alright, this is more likely a issue with your network settings or proxy. Can you connect with some other network then try it Commented May 12, 2017 at 5:06
  • 2
    ran the following command :npm set strict-ssl=false.Done Issue Resolved.Thanks @TGMCians Commented May 12, 2017 at 5:18

1 Answer 1

1

ran the following command :npm set strict-ssl=false

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.