# No connection to NPM with DS-lite Internet connection

**URL:** <https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262>\
**Category:** General\
**Created:** [9 February 2025 16:34 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262 "2025-02-09T16:34:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [9 February 2025 16:34 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/1 "2025-02-09T16:34:20Z")

</div>

Hi there,

I have installed Node-Red v4.02 and Node.js v18.20.6 on my Raspberry Pi 3 Model B Plus Rev 1.3. and I use Debian GNU/Linux 12 (bookworm). When trying to install the node-red-dashboard palette, I also came across the «request to [https://registry.npmjs.org/](https://registry.npmjs.org/) failed» problem. The download attempt also failed with other pallets. My internet connection otherwise works fine.  
After a long time of troubleshooting and overassignments, I came to the conclusion that it must still be due to my internet connection. I had recently changed the Internet provider and now use a DS-Lite connection. Can someone confirm my theory, please ? If so, I hope that there will be a solution to this problem soon...  
Is there no way to download a module without npm directly as a tgz file?  
Kind regards, Daniel

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 February 2025 16:50 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/2 "2025-02-09T16:50:09Z")

</div>

Can you ping [registry.npmjs.org](http://registry.npmjs.org)?

Are you running node-red in Docker or Home Assistant?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 February 2025 17:29 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/3 "2025-02-09T17:29:02Z")

</div>

> [@grilli303](#):
>
> DS-Lite

> In DS-Lite, IPv4 packets from customer devices are encapsulated in IPv6 packets and sent through an IPv6-only network to the service provider's network, where they are then translated and forwarded to their destination.

😕

I hadn't come across this type of network standard before.

To expand on Colin's response. You might also try running a traceroute to see where things are getting lost.

If you _can_ ping that address, try running an npm command from the command line and report back what error message you get.

Running `npm outdated --verbose` from your Node-RED userDir (usually `~/.node-red/`) should give you some decent information.

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [9 February 2025 17:44 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/4 "2025-02-09T17:44:17Z")

</div>

> [@Colin](#):
>
> Home Assistant

I have a wlan router in between the modem. From this the ping fails to [registry.npmjs.org](http://registry.npmjs.org).  
If I use the wlan connection directly from the modem, the ping to [registry.npmjs.org](http://registry.npmjs.org) works.  
So it looks that I also have a router configuration problem and will check my router settings again..  
But the day before yesterday I had also established a direct internet connection between my modem and Raspberry pi, (attempted with network cable and wlan connection).  
Again, I couldn't connect to the npmjs server.  
I don't use node-Red via Docker or Home Assistant. It runs directly on the pi.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 February 2025 18:13 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/5 "2025-02-09T18:13:16Z")

</div>

What is the error?  
Can you ping 1.1.1.1?

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [9 February 2025 21:04 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/6 "2025-02-09T21:04:52Z")

</div>

Yes, ping 1.1.1.1 is successful  
I made a direct connection from the Modem and made a traceroute now.  
It seems to reach the [npmjs.org](http://npmjs.org) server.  
6 104.16.27.34 (104.16.27.34) 17.979 ms 8.911 ms 8.695 ms

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2025 21:09 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/7 "2025-02-09T21:09:03Z")

</div>

Did you ping from the node-red instance or where your browser is running? The ping node is the best option since it actually pings from the node-red server (eg no doubts)

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [9 February 2025 21:13 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/8 "2025-02-09T21:13:23Z")

</div>

I made the ping in the terminal console from the raspi.  
But it is also successful from the Node-Red Instance.

 ![Ping Node-Red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d86e3c8c3761ac439c90f1222a04caec3374d65.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 February 2025 21:39 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/9 "2025-02-09T21:39:50Z")

</div>

So are you still getting an error? If so exactly what is the error?

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [9 February 2025 22:25 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/10 "2025-02-09T22:25:02Z")

</div>

yes, i still got error messages.

```auto
[err] npm error network request to 
http://registry.npmjs.org/node-red-dashboard failed, 
reason: socket hang up`
This is a problem related to network connectivity.
In most cases you are behind a proxy or have bad network settings.
If you are behind a proxy, 
please make sure that the 'proxy' config is set properly.  
See: 'npm help config'
A complete log of this run can be found in: 
/home/pi-433/.npm/_logs/2025-02-09T21_41_22_524Z-debug-0.log

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 February 2025 05:31 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/11 "2025-02-10T05:31:14Z")

</div>

Your PI may not have IPV6 enabled.

Make sure to enable IPv6 on the PI (and in Docker if thats how you run) and your whole network.

Also, just in case, clear down proxy settings & remove/rename any npmrc files.

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [10 February 2025 11:02 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/12 "2025-02-10T11:02:28Z")

</div>

Hi Steve,

You're right, I had deactivated ipv6 for testing.  
Now I have reactivated it, and verifyed that the Raspi gets an IPv4 and IPv6 address. ✅  
Also I have checked the proxy settings, these are disabled. ✅  
I have just installed the latest «bookworm» updates via this connection.  
Is there a specific npmrc file that I should delete or rename in the .npm folder?  
In the.npm directory I see the log files and a file with the name lastverivied.  
For a change, I tried to install the dashboard palette via the terminal.  
I still get the same error message.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 February 2025 11:20 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/13 "2025-02-10T11:20:11Z")

</div>

> [@grilli303](#):
>
> I still get the same error message.

did you restart node-red?  
did you restart the device?

I would do a simple `http-request` test flow to see if internet on the NR is working.

e.g. inject -\> http request (url: `https://swapi.dev/api/people/1`) --\> debug

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/0/20cea27262ae795114189e09f6609b9fd5898be9.png)

```auto
[{"id":"7e64f05fc9adeb3a","type":"inject","z":"77dbd3c4bb570dff","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1140,"y":580,"wires":[["109995ca87776014"]]},{"id":"109995ca87776014","type":"http request","z":"77dbd3c4bb570dff","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://swapi.dev/api/people/1","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1150,"y":640,"wires":[["f24d7e66ec255d50"]]},{"id":"f24d7e66ec255d50","type":"debug","z":"77dbd3c4bb570dff","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1160,"y":700,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 February 2025 11:22 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/14 "2025-02-10T11:22:54Z")

</div>

> [@grilli303](#):
>
> Is there a specific npmrc file

if there is a .npmrc in ~/.node-red, delete it

also, to be sure, run

```auto
npm config --global rm proxy
npm config --global rm https-proxy
npm config rm proxy
npm config rm https-proxy
unset HTTP_PROXY
unset HTTPS_PROXY
unset http_proxy
unset https_proxy

```

---

<div class="post-metadata">

**Author:** ![grilli303](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grilli303/32/103634_2.png) [@grilli303](https://discourse.nodered.org/u/grilli303)\
**Post date:** [10 February 2025 12:35 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/15 "2025-02-10T12:35:12Z")

</div>

I have good news Steve, your npm config commands have solved the problem. 😀  
Downloadig the dashboard palette was sucssesful.  
Many thanks to you and Colin for your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 February 2025 12:36 UTC](https://discourse.nodered.org/t/no-connection-to-npm-with-ds-lite-internet-connection/95262/16 "2025-02-24T12:36:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
