Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I appreciate it:
...and I am still unable to get Node and NPM commands to run to completion. They get so far, and then just hang.
Even Yarn falls over.
Even using a VPN over a mobile hotspot to avoid my fibre connection.
Even with the Node and NPM installed inside the Ubuntu distro...
I don't think I have done anything weird with proxies...
If there's any genius out there who might understand why NPM commands start and then *ALWAYS* stall out after a few seconds....
I have tried logging in with npm login credentials for the latest attempts and added always-auth=true. I disabled strict-ssl some time ago just in case...
Node/NPM is installed via NVM here - but I was having similar problems with different installs. The main suggested solution to hanging installs was to restrict IPV6 to Local links only, but that has not helped, and I'm not sure that would explain why a cache clear command would work sometimes and not others.
https://packages.ubuntu.com/search?keywords=nodejs
Why is it v20? Are you sure you are using ubuntu nodejs packages?
Distrobox should be completely isolated from the rest of the system.
So, I think installing via the curl nvm install command, breaks out of the distro somehow (or I failed to clean it up properly...)
Anyway - I uninstalled all the npm / node / nvm stuff.
'Enter'ed the ubuntu distro.
Installed via `apt update` / `apt install nodejs npm`
And voila - at last - a working version.
Node is back at v12.22.9 !!!, and npm at 8.5.1 - but at least they got my old bulls and cows game running.
Thanks for all the help.
Now ... how are my npx create react app commands going to turn out...
I highly recommend you treat your software like how enterprise user does it for immutable software. Use a stable distro with releases measure in years. You will spend lots of time configuring anyways. This stability allows your experience to be relevant for at least 2 years.
OK, so NodeJS 12 is just way too old - it was way too old last time I was using NodeJS a year ago
[create-react-app is an 'old' way to create react apps, and it needs v14 at least! (Goodness knows what vite or next.js would think about an attempt to use v12]
Anyway, there may be better linux distros, or better ubuntu distros that I might explore, but with ubuntu:22.04 you are a bit limited.
As mentioned in previous posts v20+ just doesn't work, but v18.18.2 LTS seems to be running in a pretty stable way (even though it isn't officially supported) so fingers crossed and now I can have a more serious play around
Just install it in the distrobox. You can throw out the container if you mess up.
I'm talking about distrobox in my post here.
As I also mentioned, there may be better distros (Ubuntu or otherwise) to use inside distrobox, so if anyone knows a distrobox distro that supports the latest Node/npm versions, feel free to post here