Read the statement by Michael Teeuw here.
Error trying to run: npm run install-mm
-
@sdetweil I was looking for a solution prior to coming to this forum and following someone else’s answer to there own issue that I thought would work for me, but got me no where. they said to change to node 18 from here: https://github.com/nodesource/distributions
Download and import the Nodesource GPG key
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpgCreate deb repository
NODE_MAJOR=20
echo “deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main” | sudo tee /etc/apt/sources.list.d/nodesource.listOptional: NODE_MAJOR can be changed depending on the version you need.
NODE_MAJOR=16
NODE_MAJOR=18
NODE_MAJOR=20
NODE_MAJOR=21Run Update and Install
sudo apt-get update
sudo apt-get install nodejs -yDid this screw me up?
-
@lvolkjr said in Error trying to run: npm run install-mm:
Did this screw me up?
maybe…
try this
sudo apt-get remove nodejs -y
then do
node -v -
@sdetweil I didn’t see any errors after running sudo apt-get remove nodejs -y
When I run node -v I get this:
bash: /usr/bin/node: No such file or directory -
@lvolkjr ok, do
ls /usr/bin/node
should return file not found
do
hash -r
node -vjust to make sure…
then run my install or upgrade script as appropriate… -
@sdetweil This is what I got:
lowell@raspberrypi:~ $ ls /usr/bin/node
ls: cannot access ‘/usr/bin/node’: No such file or directory
lowell@raspberrypi:~ $ hash -r
lowell@raspberrypi:~ $ node -v
bash: node: command not foundDo you still want me to run your script? I feel like node -v should have given me a different output, like the version number.
-
@lvolkjr I expected something too
I’d rebuild the SD card, boot, skip updates
then use my script. this node install is such a mess, they changed the process…ugh
-
@sdetweil Yea, I figured. Thanks for all your help. Hopefully I could repay you in the future. I’ll keep you updated to what happens.
-
@sdetweil Thanks!!! That worked! I’m running MagicMirror and getting ready to customize it. I should have started over a long time ago.
-
@lvolkjr cool… yeh, its hard to tell when you’ve hit a real roadblock
glad you are working now… make sure to backup!!..
-
@sdetweil I will, thanks again.