I am trying the following brew statement on console, but required node version is not found
brew install node#5.4.1
Does anybody knows how to install node version 5.4.1 by using Homebrew? This version is mandatory when using SAP HAT framework and is no longer possible to use previously node versions.
Futher information about HAT may be found on the following link: https://help.hana.ondemand.com/webide_hat/frameset.htm
You can’t install a specific version of Node with Homebrew if nobody wrote a formula (= package) for it. Homebrew doesn’t magically knows how to retrieve Node version 5.4.1 and how to build it.
You have to either install that version another way (e.g. using n) or create your own Homebrew formula (see the node#6 one).
Related
I need to use riscv64-unknown-elf-gdb with Clion (on Mac) that is currently supporting only up to version 9.2, I have installed riscv-tools using brew install riscv-tools as instructed here and got the latest version which is 10.1.
After that, I tried brew install riscv-tools#9.2.0 but got: No available formula or cask with the name "riscv-tools#9.2.0"
Is there any way to install a specific older version?
And how bad it is to use an usupported version of gdb with Clion? so far it seems to be working anyway.
A solution in Linux will also be very appreciated.
If you want to get gdb 9.2, you can easily get it from https://ftp.gnu.org/gnu/gdb/ where gdb 9.2 already support risc-v.
Mac OS 10.13.6 with homebrew installed, today had to upgrade it because of new homebrew policy
Can't update or upgrade Homebrew
after doing this, tried upgrading node to latest version and got below error
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
Error: node not installed
In fact I do have old version of node installed
node -v
v12.0.0
how to solve this weird problem ?
Note:
Few weeks back I did below to use older version of node
Install NVM On Mac With Brew
I'm really confused atm, who is managing node on MAC ? Is it NVM / homebrew ?
I'm trying to install node.js on Ubuntu using linuxbrew. I'm running the following commands:
brew update
brew info node
the output is
node: stable 6.0.0, HEAD
However version 6.1.0 should already be available (you could verify it in e.g braumeister)
Any ideas what could be the issue here?
Linuxbrew is built on top of Homebrew and updates to the latter need to be manually ported to the former, which is why you can expect a small update lag. Braumeister and similar websites get their infos from Homebrew.
I installed NodeJs with the following commands:
brew install node
It downloaded the version 5.5.0 of NodeJs.
I want the version 4.1.2 (for Ionic compatibility).
How to download this specific one?
I can't run brew switch node 4.1.2 since I've never downloaded it before.
May I suggest using nvm instead?
With nvm you can switch between node versions really easy:
nvm install 4.2
And you can install multiple versions of node and switch between them as you wish.
You can search available versions of node to install by running:
brew search node
The closest version would be "node4-lts". To obtain that version, run:
brew install homebrew/versions/node4-lts
I am new to Ubuntu (linux).
I installed node.js for a project.
Recently I am getting this error on npm install.
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
I found a stack link below as
Node pre error
Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.
Please help me on how can I locate the directory where node.js is installed.
Quick explanation
You have a version with -pre. Get rid of it and put the latest stable version from nodejs.org.
You can use which to locate a command. For your case, type which nodejs.
EDIT: The answer from your link is referring to the path of node source code, not the nodejs binary.
On Ubuntu, most software can be installed from the built-in repositories. This updates it for you (even if it's sometimes a bit outdated).
To install the stable version the Ubuntu way, install the nodejs-legacy package (after uninstalling your version):
sudo apt install nodejs-legacy
To use the latest, refer to https://askubuntu.com/a/663052/438156 (my answer), or https://askubuntu.com/a/711976/438156 (bit more involved, more the Ubuntu way).