2017-09-25 116 views
0

嘗試使用create-react-native-app並落在此處的第一個障礙處。使用create-react-native-app發生意外錯誤:

我認爲問題是,當紗線試圖安裝依賴:

yarn install v0.27.5 
[1/4] Resolving packages... 
warning react-native > [email protected]: connect 2.x series is deprecated 
error An unexpected error occurred: "https://raw.githubusercontent.com/expo/node-websql/e364fa65146a9e2157a19e5c719e7702c2b6b87a/package.json: connect ETIMEDOUT 90.207.238.183:443". 
info If you think this is a bug, please open a bug report with the information provided in "D:\\users\\jamie\\WebstormProjects\\hang\\hang-app\\yarn-error.log". 
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 

無法安裝

有什麼奇怪的是,我跑創建反應的原生應用程序內這臺機器上上週測試它出來,一切都很好。

有沒有人有任何想法可能會發生什麼?

回答

0

錯誤信息提示朝第4行的末尾:connect ETIMEDOUT,我假設這意味着紗線超時而下載了package.json文件。

我只是試圖在瀏覽器中粘貼URL並將其加載,所以如果再次嘗試,它可能會正常工作!

+0

好的,正在取得進展! raw.githubusercontent.com被我的ISP(Phising/malware,嘆息...)阻止,所以我已將其列入白名單。現在,我收到錯誤 '錯誤從註冊表中收到了未定義的錯誤響應。註冊表可能會關閉。' –

+0

嗯,這聽起來像一個被阻止的東西類似的問題。不知道它是否會有所幫助,但也許試試'yarn install --verbose'來獲得更多的調試輸出? – dain

+0

完全關閉ISP阻止系統,現在一切正常!謝謝你的幫助。 (並且不要感謝天空互聯網)。 –

相關問題