You can check the latest updated version of this article at lobotuerto's notes - How to install Node.js in Manjaro Linux.
Installation process
Version managers rule in dev environments.
So we will install Node.js through nvm.
Install the nvm
package from the AUR:
pacaur -S nvm
Then on your terminal:
echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.bashrc
exec $SHELL
To list all available versions for Node.js :
nvm ls-remote
Let’s install latest from the 9 series:
nvm install 9
node -v #v9.8.0
npm -v #5.6.0
Add the Yarn package manager globally:
npm install -g yarn
We need to add Yarn’s binary to our $PATH
in ~/.bashrc
.
In a terminal:
echo 'export PATH=$PATH:~/.yarn/bin' >> ~/.bashrc
If you are a Vue.js fan —and why shouldn’t you be one? :)— install vue-cli:
yarn global add vue-cli
Top comments (5)
What are your opinions on using the nodejs package from the community repository?
As date of comment (2021-09-29), the last build was of 2021-09-03.
Great article dude!
Just a typo at the beginning:
pacman -S nvm
I think that also sudo will be required.
Cheers!
pacman
&pacaur
is totally the same,pacaur
is just a helper :)Wow! didn't know about that. Thanks!
thanks, Great article sirr