Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node v12? #20

Closed
rafamel opened this issue Nov 1, 2019 · 3 comments
Closed

Node v12? #20

rafamel opened this issue Nov 1, 2019 · 3 comments

Comments

@rafamel
Copy link

rafamel commented Nov 1, 2019

Any plans on adding a script for Node 12?

@sdesalas
Copy link
Owner

Happy to merge a PR if you are offering.

@deftdawg
Copy link

Hey @rafamel a quick FYI, armv6l (which is what the Pi Zero's CPU see /proc/cpuinfo) builds of node are no longer officially supported, however they are available as experimental (meaning they no longer have unit tests validated) builds from here:

https://unofficial-builds.nodejs.org/download/release

For my application, I've been able to just download 12.14.1 like this:

export NODE_VER=12.14.1
if ! node --version | grep -q ${NODE_VER}; then
  (cat /proc/cpuinfo | grep -q "Pi Zero") && if [ ! -d node-v${NODE_VER}-linux-armv6l ]; then
    echo "Installing nodejs ${NODE_VER} for armv6 from unofficial builds..."
    curl -O https://unofficial-builds.nodejs.org/download/release/v${NODE_VER}/node-v${NODE_VER}-linux-armv6l.tar.xz 
    tar -xf node-v${NODE_VER}-linux-armv6l.tar.xz 
  fi
  echo "Adding node to the PATH"
  PATH=$(pwd)/node-v${NODE_VER}-linux-armv6l/bin:${PATH}
fi
node --version # or whatever ....

@sdesalas
Copy link
Owner

sdesalas commented Mar 8, 2021

Updated, you should now be able to use the same CLI scripts for v12+.

$ wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v14.16.0.sh | bash

Its now basically downloading the tarballs from the Unofficial Builds Project.

See explanation here:

https://github.com/sdesalas/node-pi-zero#node-in-v12-experimental

@sdesalas sdesalas closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants