When you tries to install nodejs usng sudo apt install -y nodejs this typically installs nodejs 18 on ubuntu. To upgrade to a newer version of it, you have to curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - And then run sudo apt install -y nodejs And then you have node 22 installed:
Due to a security permission constraints on your folder, when using ssh via pem file, it needs to be secured. To do what, place your file in a folder and then configure the necessary permission. right click on the folder, right click on properties -> security -> Advance tab (as shown in figure below). Once you click on Apply, try to re-connect again.
While trying to run gemini cli on my windows linux subsystem, i bump into this error here - "/Roaming/npm/node_modules/@google/gemini-cli/node_modules/undici/lib/web/webidl/index.js:512 webidl.is.File = webidl.util.MakeTypeAssertion(File)" "ReferenceError: File is not defined" In Node.js, there’s no built-in File (until very recent Node 20+ with experimental WHATWG APIs). So, unless polyfilled, File is undefined, leading to the ReferenceError. And to resolve this, I had to upgrade to node 22 (might work for node 20) and then I was able to run it.
Comments