无法安装JHIPSTER-GENERATOR



我正在尝试遵循JHIPSTER网站上的安装指南,但我什至无法运行第一个指令,它可以使我保持不变。我现在运行了大约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 > npmconf@2.1.2: 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 > npmconf@2.1.2: 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 > npmconf@2.1.2: 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/

我遇到相同的错误,就我而言,只有试图从Docker容器到yarn add时。

重新启动Docker解决了我的问题。

尝试正确设置注册表,例如:

npm config set registry "https://registry.npmjs.org"

最新更新