Based in the comments from this issue if npm packages throws a timeout.
- You should disabled ipv6
Information about disable/enable ipv6 in Ubuntu https://itsfoss.com/disable-ipv6-ubuntu-linux/
- Add registry npm to /etc/hosts file
Based in the comments from this issue if npm packages throws a timeout.
Information about disable/enable ipv6 in Ubuntu https://itsfoss.com/disable-ipv6-ubuntu-linux/