Last change
on this file was 38934, checked in by davidb, 5 weeks ago |
Option to bump up to v18.18.0 LTS, but currently still working with v16 by default
|
-
Property svn:executable
set to
*
|
File size:
866 bytes
|
Rev | Line | |
---|
[36447] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | OS_UPPERCAPS=`uname -s | tr '[:lower:]' '[:upper:]'`
|
---|
| 4 | OS_LOWERCAPS=`uname -s | tr '[:upper:]' '[:lower:]'`
|
---|
| 5 |
|
---|
| 6 | version=16.13.2
|
---|
[38934] | 7 | #version=18.18.0
|
---|
[36447] | 8 | installed_dir=node-${OS_LOWERCAPS}-64bit
|
---|
| 9 |
|
---|
| 10 | tar xvzf node-v${version}-linux-x64.tar.gz \
|
---|
| 11 | && mv node-v${version}-linux-x64 $installed_dir
|
---|
| 12 |
|
---|
| 13 | if [ $? = 0 ] ; then
|
---|
[36900] | 14 | echo ""
|
---|
[36447] | 15 | echo "Untarred NodeJS $version and renamed the directory to:"
|
---|
| 16 | echo " $installed_dir"
|
---|
| 17 | fi
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | os_full_lc=`uname -s | tr '[:upper:]' '[:lower:]'`
|
---|
| 21 | os_root=${os_full_lc%%_*}
|
---|
| 22 |
|
---|
[37490] | 23 | #if [ "x$os_root" = "xcygwin" ] ; then
|
---|
| 24 | # if [ ! -x $installed_dir/node.exe ] ; then
|
---|
| 25 | # echo "" >&2
|
---|
| 26 | # echo "**** Note ****" >&2
|
---|
| 27 | # echo "Under Cygwin, the programs in the 'bin' directory often lack" >&2
|
---|
| 28 | # echo "execute permissions. This can be addressed with:" >&2
|
---|
| 29 | # echo " chmod a+x $installed_dir/*.{exe,bat,cmd} $installed_dir/{npm,npx}" >&2
|
---|
| 30 | # fi
|
---|
| 31 | #fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.