ruby
Ruby
Arch Wiki: ruby
Install the ruby package.
Add ruby gem path to shell rc, ie ~/.zshrc
, or ~/.bashrc
.
PATH="$(ruby -e 'print Gem.user_dir')/bin:${PATH}"
On Arch user gems will be installed to ~/.gem/ruby/
so they don't interact with anything installed by Pacman.
Bundler
Install bundler with.
gem install bundler
Bundler by default installs gems system-wide. To change this default add the following to your shell rc.
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
Bundles can be installed explicitly at a certain location using:
bundle install --path .bundle
This would install a bundle in the working directory inside of a .bundle directory.
Node.js
Arch Wiki: nodejs
Install the nodejs package.
To set up nodejs to store packages in working directories, add the following to your shell rc.
export npm_config_prefix=${HOME}/.node_modules
PATH="${HOME}/.node_modules/bin:${PATH}"
Last updated