Не могу установить jhipster-генератор

Я пытаюсь следовать руководству по установке на веб-сайте jhipster, но я даже не могу выполнить первую инструкцию, у меня постоянно ETIMEDOUT. Я пытался запустить его около 30 раз, и он продолжает терпеть неудачу (иногда по разным URL-адресам).

apixandru@DESKTOP-BAA6A1B 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.

apixandru@DESKTOP-BAA6A1B 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.

apixandru@DESKTOP-BAA6A1B 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.

Похоже, он начинает делать сотни запросов на получение, и в конце концов сервер отказывается отвечать мне. Я не понимаю, почему эти ответы не кэшируются локально, поэтому мне не нужно выполнять сотни запросов каждый раз, когда я повторяю попытку.

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


person Alexandru    schedule 22.02.2017    source источник
comment
Вы за брандмауэром? Можно ли получить доступ к registry.yarnpkg.com/generator-jhipster из браузера? Вы пытались установить jhipstrer с помощью npm install -g generator-jhipster?   -  person Gaël Marziou    schedule 22.02.2017
comment
Также вам необходимо предоставить дополнительную информацию, у вас есть проблемы с другими пакетами или только с этим генератором? Устраните неполадки немного дальше.   -  person cinnaroll45    schedule 22.02.2017
comment
@GaëlMarziou Я поместил ссылку в исходный пост с полным выводом того, что происходит. Вроде начинает делать много запросов, но в итоге сервер у меня зависает paste.ubuntu.com /24048741   -  person Alexandru    schedule 23.02.2017
comment
@GaëlMarziou кажется, что установка npm работает, а пряжа — нет. npm выглядит так, как будто в нем реализована логика повтора, тогда как пряжа не повторяет попытку информации npm, ошибка при последней попытке: Ошибка: подключение ETIMEDOUT 151.101.112.162:443   -  person Alexandru    schedule 23.02.2017
comment
Пробовали ли вы предложенный вариант пряжи --network-concurrency 1, упомянутый в github.com/yarnpkg/yarn/issues/944 ?   -  person Gaël Marziou    schedule 23.02.2017
comment
@GaëlMarziou, у меня есть, но я получаю тот же результат   -  person Alexandru    schedule 23.02.2017


Ответы (2)


У меня была такая же ошибка, в моем случае это было только при попытке yarn add из контейнера Docker.

Перезапуск Docker решил мою проблему.

person pgpb.padilla    schedule 05.09.2017

Попробуйте правильно настроить реестр, например:

npm config set registry "https://registry.npmjs.org"
person Vinicius Dias    schedule 02.09.2018