Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] hard to build ui-ngx , when run "yarn install" #3784

Closed
icoco opened this issue Nov 28, 2020 · 4 comments · Fixed by #6339
Closed

[Question] hard to build ui-ngx , when run "yarn install" #3784

icoco opened this issue Nov 28, 2020 · 4 comments · Fixed by #6339
Assignees
Labels
question generic question

Comments

@icoco
Copy link

icoco commented Nov 28, 2020

Component

  • UI-ngx

Description
hard to build ui-ngx module , when run "yarn install", it report bellow message that seem show network connection issue, but that should not a problem indeed, what make this problem ?

yarn install
yarn install v1.22.4
[1/4] Resolving packages...
warning @angular/cli > debug@4.2.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
warning @angular/cli > universal-analytics > request@2.88.2: request has been deprecated, see request/request#3142
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@angular/common/-/common-10.0.9.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "/home/tb/ui-ngx/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

Environment

  • OS: mac, centos
  • ThingsBoard: 3.1.1
@icoco icoco added the question generic question label Nov 28, 2020
@ashvayka
Copy link
Member

ashvayka commented Dec 5, 2020

Try to clear node_modules:

rm -rf ui-ngx/node_modules

@dharmesh95
Copy link

Tried mvn clean install on release 3.2 and it showed
There appears to be trouble with your network connection. Retrying...
Do I have to install yarn manually?

@ashvayka
Copy link
Member

No, it is probably an issue with your network or yarn servers.. Please clean node modules and try again. We never experience similar issues.

@dharmesh95
Copy link

dharmesh95 commented Mar 25, 2021

Fix was to add timeout to yarn install
<execution> <id>yarn install</id> <goals> <goal>yarn</goal> </goals> <configuration> <arguments>install --network-timeout 1000000</arguments> </configuration> </execution>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants