sdesalas / node-pi-zero Goto Github PK
View Code? Open in Web Editor NEWNode installation on the Raspberry Pi Zero (Including v12+ Experimental Builds)
Node installation on the Raspberry Pi Zero (Including v12+ Experimental Builds)
Hi,
I have been using the bridge for a year (VERY happy, MANY thanks to you;)
But a big problem appeared last days of December - Let me explain:
My son used the bridge 2-3 times on his Xmas holiday, from HIS laptop (and his Z account).
After that, when I used it, Zwift sees all the data FROM the Kettler, but no longer can change the power on the K. (fyi I am using it in erg mode, he tried it in both sim and erg). (so now I change the power with the buttons on the Kettler, looking at what Z says to workout with, and Z sees all the settings. Manual automation;)
I tried putting the SD card in a different R Pi (3B+), and a different USB cable, but no change. So it's either the Kettler (something broke), or something happened to the installation on the card. Can you suggest what to do, what to test and how?
Thanks in advance
ps - I tried to install a new version on a new card before bothering you, but have some problems with that as well - I describe it in another Issue report.
Hello,
I'm trying to run wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v.lts.sh | bash
But I have this error:
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.120.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.120.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1944 (1.9K) [text/plain]
Saving to: ‘STDOUT’
- 100%[=====================================>] 1.90K --.-KB/s in 0.03s
2017-11-18 10:02:10 (61.2 KB/s) - written to stdout [1944/1944]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
63 99k 63 64480 0 0 29261 0 0:00:03 0:00:02 0:00:01 29282
curl: (23) Failed writing body (797 != 3837)
mkdir: cannot create directory ‘temp’: File exists
--2017-11-18 10:02:13-- https://nodejs.org/dist/latest-carbon/node-v8.9.0-linux-armv6l.tar.gz
Resolving nodejs.org (nodejs.org)... 104.20.23.46, 104.20.22.46, 2400:cb00:2048:1::6814:162e, ...
Connecting to nodejs.org (nodejs.org)|104.20.23.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-11-18 10:02:14 ERROR 404: Not Found.
tar (child): node-v8.9.0-linux-armv6l.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'node-v8.9.0-linux-armv6l.tar.gz': No such file or directory
mv: cannot stat 'node-v8.9.0-linux-armv6l': No such file or directory
Any idea why ?
Why do your scripts make 4 symlinks to /opt/nodejs/node
? What's wrong with just one? /usr/local/bin/node
should be sufficient, no? Same thing for npm
.
Also, why not use ln -sf ...
instead of unlink
and ln ...
?
Hi, I upgraded (foolishly) npm from 5.6.0 (which I had from installing node 8.10, which I need for a software package) to 6.14.8.
Now it will not run, to downgrade. I get this: (even with version switch I get the same):
pi@raspberrypi:~/kettlerUSB2BLE $ npm install [email protected]
npm does not support Node.js v8.10.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/opt/nodejs/lib/node_modules/npm/lib/npm.js:32
#unloaded = false
^
SyntaxError: Invalid or unexpected token
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at module.exports (/opt/nodejs/lib/node_modules/npm/lib/cli.js:22:15)
Hi there,
First of all, congrats for your script, it is very useful ;)
I found a problem regarding /usr/local/bin folder since your script throw the following error:
ln: failed to create symbolic link '/usr/local/bin/node': No such file or directory
ln: failed to create symbolic link '/usr/local/bin/npm': No such file or directory
I have a Raspberry B v1 (ARMv6l) and I checked that folder /usr/local/bin didn't exist.
Am I going to suffer any problems regarding this issue?
Hi there,
Do you perhaps have the same solution for other pis?
I would like this super quick install for my pi3, currently it takes about 4 hours with the way that i do it.
npx
(/opt/nodejs/bin/npx
) is currently not symlinked in scripts. Any plans to add it?
The file present is node-v10.20.1-linux-armv6l.tar.gz but the script tries to download node-v10.20.0-linux-armv6l.tar.gz on a Raspberry Pie Zero W running an up to date version of rasbian-lite (from 2020-02-13-raspbian-buster-lite).
wget -O - https://raw.githubusercontent.com/sdesalas/node-pi-zero/master/install-node-v.lts.sh | bash
Output:
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1944 (1.9K) [text/plain]
Saving to: ‘STDOUT’
- 100%[==============================================================================================>] 1.90K --.-KB/s in 0.03s
2020-04-18 17:39:43 (72.0 KB/s) - written to stdout [1944/1944]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
68 168k 68 115k 0 0 238k 0 --:--:-- --:--:-- --:--:-- 239k
curl: (23) Failed writing body (158 != 4229)
mkdir: cannot create directory ‘temp’: File exists
--2020-04-18 17:39:44-- https://nodejs.org/dist/latest-dubnium/node-v10.20.0-linux-armv6l.tar.gz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:172e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-04-18 17:39:44 ERROR 404: Not Found.
tar (child): node-v10.20.0-linux-armv6l.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'node-v10.20.0-linux-armv6l.tar.gz': No such file or directory
mv: cannot stat 'node-v10.20.0-linux-armv6l': No such file or directory
I tried to do a classic, i.e. step by step, install, and installed Raspberry Pi OS with Desktop, the current version (which is based on Debian 11 "Bullseye")
But when installing node.js 8.10, I get this - seems not successful?
Any suggestions? Or should I just install the "legacy" RPi OS (debian 10 Buster)?
Any plans on adding a script for Node 12?
unlink: cannot unlink '/sbin/node': No such file or directory unlink: cannot unlink '/sbin/npm': No such file or directory unlink: cannot unlink '/sbin/npx': No such file or directory ln: failed to create symbolic link '/sbin/node': File exists ln: failed to create symbolic link '/sbin/npm': File exists ln: failed to create symbolic link '/sbin/npx': File exists
Rpi 0 W, raspbian headless
After trying to find this project on google and for a while without success, I've realised this has a lot to do with raspberry not being in the repository name. I luckily only found it again due to the star I gave it. But I worry others aren't finding this really useful project. Would you consider renaming it to node-raspberry-pi-zero-installation.
edit: realised the description does include Raspberry.
thanks for this project anyway when I install a package with npm install -g
package binary is not found even if it's correctly installed. Any idea ?
I used the script to install the last version of node.
Hi Steven, I experienced an issue with my globally installed npm packages getting wiped. Here are the steps to reproduce on a Pi Zero:
install-node-v.last.sh
pm2``:
npm install -g pm2`install-node-v.lts.sh
After these steps, the pm2
command cannot be invoked and is no longer available as well as any other NPM packages that I installed globally. I see in the install scripts that /opt/nodejs
gets wiped every time the install script runs and thus the contents of /opt/nodejs/lib/node_modules
containing pm2
gets wiped too.
Can you update the install scripts to preserve the contents of /opt/nodejs/lib/node_modules
(with the possible exception of the npm
directory which will be regenerated) before doing the installation?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.