2017-02-22 113 views
1

我正在嘗試按照jhipster網站上的安裝指南進行操作,但我甚至無法運行第一條指令,它始終對我進行ETIMEDOUT'ing。我現在TRED運行它的30倍左右,並不停地進行故障(有時在不同的URL)無法安裝jhipster-generator

[email protected] MINGW64 ~ 
$ yarn global add generator-jhipster 
yarn global v0.20.3 
[1/4] Resolving packages... 
warning generator-jhipster > yo > fullname > [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
error An unexpected error occurred: "https://registry.yarnpkg.com/lodash: connect ETIMEDOUT 104.16.59.173:443". 
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\apixandru\\AppData\\Local\\Yarn\\config\\global\\yarn-error.log". 
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. 

[email protected] MINGW64 ~ 
$ yarn global add generator-jhipster 
yarn global v0.20.3 
[1/4] Resolving packages... 
warning generator-jhipster > yo > fullname > [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
error An unexpected error occurred: "https://registry.yarnpkg.com/js-yaml: connect ETIMEDOUT 104.16.59.173:443". 
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\apixandru\\AppData\\Local\\Yarn\\config\\global\\yarn-error.log". 
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. 

[email protected] MINGW64 ~ 
$ yarn global add generator-jhipster 
yarn global v0.20.3 
[1/4] Resolving packages... 
warning generator-jhipster > yo > fullname > [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
error An unexpected error occurred: "https://registry.yarnpkg.com/html-wiring: connect ETIMEDOUT 104.16.62.173:443". 
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\apixandru\\AppData\\Local\\Yarn\\config\\global\\yarn-error.log". 
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command. 

它看起來像它開始做上百get請求,並最終服務器拒絕迴應我。我不明白爲什麼這些響應不緩存在本地,所以我不必執行數百個請求,我每次重試

https://paste.ubuntu.com/24048741/

+1

你在防火牆後面嗎?你可以通過瀏覽器訪問https://registry.yarnpkg.com/generator-jhipster嗎?您是否嘗試過使用'npm install -g generator-jhipster'安裝jhipstrer? –

+0

您還需要提供更多信息,您是否有與其他軟件包有關的問題或只是使用此生成器?進一步排除故障。 – cinnaroll45

+0

@GaëlMarziou我在原始帖子中添加了一個鏈接,其中包含正在發生的全部輸出。它似乎開始做出很多請求,但最終服務器掛在我身上https://paste.ubuntu.com/24048741/ – Alexandru

回答

0

時候,我正經歷着同樣的錯誤,在我的情況下,它是僅在嘗試從Docker容器中獲取yarn add時纔有效。

重新啓動Docker修復了我的問題。