mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-04 06:03:15 +01:00
28 lines
662 B
Bash
28 lines
662 B
Bash
#!/bin/sh
|
|
#
|
|
# Node lets us write JavaScript code outside of the browser.
|
|
#
|
|
# Yarn is the preferred dependency manager, however, some programs
|
|
# have npm hard-coded as a dependency, so we install that as well.
|
|
#
|
|
# We set the yarn prefix to /usr/local so libraries installed
|
|
# globally with yarn are automatically in our $PATH.
|
|
#
|
|
# We enable emojis since our terminal (termite) supports them. A
|
|
# nice addition for some added flair.
|
|
#
|
|
# https://wiki.archlinux.org/index.php/Node.js
|
|
# https://yarnpkg.com/en/docs/cli/global
|
|
|
|
set -xe
|
|
|
|
sudo pacman -S nodejs
|
|
|
|
sudo pacman -S npm
|
|
|
|
sudo pacman -S yarn
|
|
|
|
yarn config set prefix /usr/local
|
|
|
|
yarn config set -- --emoji true
|