arm64 for nodejs downloads #72
This commit is contained in:
parent
52c9c5abc7
commit
f836b17643
|
@ -46,10 +46,14 @@ NODEJS_INSTALLED_APPS_FILE=$HOME/.nodejs-apps
|
||||||
function get_npm_arch {
|
function get_npm_arch {
|
||||||
N_ARCH='x86'
|
N_ARCH='x86'
|
||||||
NPM_ARCH='ia32'
|
NPM_ARCH='ia32'
|
||||||
if [[ $ARCHITECTURE == 'arm'* || $ARCHITECTURE == *"aarch"* ]]; then
|
if [[ $ARCHITECTURE == 'arm'* ]]; then
|
||||||
NPM_ARCH='armv7l'
|
NPM_ARCH='armv7l'
|
||||||
N_ARCH='arm'
|
N_ARCH='arm'
|
||||||
fi
|
fi
|
||||||
|
if [[ $ARCHITECTURE == *"aarch"* ]]; then
|
||||||
|
NPM_ARCH='arm64'
|
||||||
|
N_ARCH='arm64'
|
||||||
|
fi
|
||||||
if [[ $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'amd64' ]]; then
|
if [[ $ARCHITECTURE == 'x86_64' || $ARCHITECTURE == 'amd64' ]]; then
|
||||||
NPM_ARCH='x64'
|
NPM_ARCH='x64'
|
||||||
N_ARCH='x64'
|
N_ARCH='x64'
|
||||||
|
|
Loading…
Reference in New Issue