-
Notifications
You must be signed in to change notification settings - Fork 59
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
Comments
Happy to merge a PR if you are offering. |
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 .... |
Updated, you should now be able to use the same CLI scripts for v12+.
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 |
Any plans on adding a script for Node 12?
The text was updated successfully, but these errors were encountered: