forked from eieioxyz/dotfiles_macos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_node.zsh
More file actions
executable file
·28 lines (22 loc) · 832 Bytes
/
Copy pathsetup_node.zsh
File metadata and controls
executable file
·28 lines (22 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env zsh
echo "\n<<< Starting Node Setup >>>\n"
# Node versions are managed with `n`, which is in the Brewfile.
# See `zshenv` for the setting of the `N_PREFIX` variable,
# thus making it available below during the first install.
# See `zshrc` where `N_PREFIX/bin` is added to `$path`.
if exists $N_PREFIX/bin/node; then
echo "Node $($N_PREFIX/bin/node --version) & NPM $($N_PREFIX/bin/npm --version) already installed with n"
else
echo "Installing Node & NPM with n..."
n latest
fi
# Install Global NPM Packages
npm install --global firebase-tools
npm install --global @angular/cli
npm install --global @ionic/cli
npm install --global typescript
npm install --global json-server
npm install --global http-server
npm install --global trash-cli
echo "Global NPM Packages Installed:"
npm list --global --depth=0