Skip to content

Commit

Permalink
Merge pull request #660 from yalh76/patch-1
Browse files Browse the repository at this point in the history
[enh] Add the arch argument to ynh_install_nodejs
  • Loading branch information
alexAubin authored Feb 24, 2019
2 parents 6a7a0a8 + dd28717 commit fa40232
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion data/helpers.d/nodejs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ ynh_install_nodejs () {
test -x /usr/bin/npm_n && mv /usr/bin/npm_n /usr/bin/npm

# Install the requested version of nodejs
n $nodejs_version
uname=$(uname -m)
if [[ $uname =~ aarch64 || $uname =~ arm64]]
then
n $nodejs_version --arch=arm64
else
n $nodejs_version
fi

# Find the last "real" version for this major version of node.
real_nodejs_version=$(find $node_version_path/$nodejs_version* -maxdepth 0 | sort --version-sort | tail --lines=1)
Expand Down

0 comments on commit fa40232

Please sign in to comment.