This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 0ab43df switch to n and lts version of node
0ab43df is described below
commit 0ab43df1a28b2624b6939c715ad918a4ac8b9fd6
Author: Sam Ruby <[email protected]>
AuthorDate: Sat Dec 7 10:41:31 2019 -0500
switch to n and lts version of node
---
config/setupmymac | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/config/setupmymac b/config/setupmymac
index 4019078..7e59c8a 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -184,16 +184,14 @@ end
## Install Node.js
if not $root and option != :docker
- if `which node`.empty?
- brew 'install', 'node'
+ if `which n`.empty?
+ brew 'install', 'n'
elsif force[:node]
- brew 'upgrade', 'node'
+ brew 'upgrade', 'n'
end
- if `which npm`.empty?
- run 'npm install -g npm'
- elsif force[:node]
- run 'npm upgrade -g npm'
+ if `which node`.empty? or force[:node]
+ run 'n lts'
end
# Prompt for xcode installation