Dear All,
im trying to install node-red on windows 10 machine, i try with two version on node-js 18.13.0 and 10.15.0 both x64 . when i run the npm install -g unsafe-perm node-red on with node-js 18.13 the error is E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/unsafe-perm - Not found
while if i try it on node-js version i recive a timeout error..
PS C:\WINDOWS\system32> npm install -g unsafe-perm node-red
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/unsafe-perm - Not found
npm ERR! 404
npm ERR! 404 'unsafe-perm@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
PS C:\WINDOWS\system32> npm install -g --unsafe-perm node-red
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cadarache\AppData\Local\npm-cache_logs\2023-03-10T13_09_34_099Z-debug-0.log
PS C:\newfldr> npm install aaa
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: The npm registry is deprecating TLS 1.0 and TLS 1.1 - The GitHub Blog
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: The npm registry is deprecating TLS 1.0 and TLS 1.1 - The GitHub Blog
added 1 package in 3s
PS C:\newfldr> npm install -g --unsafe-perm node-red
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cadarache\AppData\Local\npm-cache_logs\2023-03-13T08_09_13_369Z-debug-0.log
PS C:\newfldr> npm set registry=https://registry.npmjs.org/
PS C:\newfldr> npm install -g --unsafe-perm node-red
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cadarache\AppData\Local\npm-cache_logs\2023-03-13T08_58_14_293Z-debug-0.log
Esecuzione di Ping google.it [142.250.179.99] con 32 byte di dati:
Risposta da 142.250.179.99: byte=32 durata=55ms TTL=114
Risposta da 142.250.179.99: byte=32 durata=42ms TTL=114
Statistiche Ping per 142.250.179.99:
Pacchetti: Trasmessi = 2, Ricevuti = 2,
Persi = 0 (0% persi),
Tempo approssimativo percorsi andata/ritorno in millisecondi:
Minimo = 42ms, Massimo = 55ms, Medio = 48ms
Esecuzione di Ping registry.npmjs.org [104.16.21.35] con 32 byte di dati:
Risposta da 104.16.21.35: byte=32 durata=31ms TTL=53
Risposta da 104.16.21.35: byte=32 durata=75ms TTL=53
Risposta da 104.16.21.35: byte=32 durata=33ms TTL=53
Risposta da 104.16.21.35: byte=32 durata=36ms TTL=53
Statistiche Ping per 104.16.21.35:
Pacchetti: Trasmessi = 4, Ricevuti = 4,
Persi = 0 (0% persi),
Tempo approssimativo percorsi andata/ritorno in millisecondi:
Minimo = 31ms, Massimo = 75ms, Medio = 43ms
PS C:\newfldr> ^C
PS C:\newfldr> Invoke-WebRequest https://registry.npmjs.org
so, as far as I can see, everything appears to be in order.
Perhaps you have a REALLY slow internet connection causing the ERR_SOCKET_TIMEOUT
In powershell, paste the below
Function Measure-NetworkSpeed{
# The test file has to be a 10MB file for the math to work. If you want to change sizes, modify the math to match
$TestFile = 'https://ftp.sunet.se/mirror/parrotsec.org/parrot/misc/10MB.bin'
$TempFile = Join-Path -Path $env:TEMP -ChildPath 'testfile.tmp'
$WebClient = New-Object Net.WebClient
$TimeTaken = Measure-Command { $WebClient.DownloadFile($TestFile,$TempFile) } | Select-Object -ExpandProperty TotalSeconds
$SpeedMbps = (10 / $TimeTaken) * 8
$Message = "{0:N2} Mbit/sec" -f ($SpeedMbps)
$Message
}
Measure-NetworkSpeed
You can install on another computer of the same OS type can copy things over. Though you will find it easier generally to do this with a local node-red install rather than a global one. However, either is possible, you just need to track down the right file folders.