Read the statement by Michael Teeuw here.
npm start Problem
-
Hello everyone,
After a few months I wanted to
sudo npm start
/usr/local/bin/node: 1: Syntax error: “)” unexpected
What does this mean and how can I solve it? -
@Lockslay NEVER use sudo
cd ~/MagicMirror npm start -
stefan@smartmirror:~ $ cd MagicMirror/ stefan@smartmirror:~/MagicMirror $ npm start /usr/local/bin/node: 1: Syntax error: ")" unexpected](Link Adresse)Unfortunately, that doesn’t work either
-
@Lockslay can you do
node - v -
@sdetweil
node - v-bash: /usr/local/bin/node: cannot execute binary file: Exec format error -
when was the last update to the system or MagicMirror?
do
nvm
and
nsee if either respond… because node is in the local folder
-
Hello,
I did an apt update && apt upgrade today.
Everything else did not work after a reboot.n
and nvmcommand not found
-
-
uname -a
Linux smartmirror 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linuxlsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseyefile /bin/bash
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=f12e6d40fb262ad0037b6ec43162208b76d4da71, for GNU/Linux 3.2.0, stripped -
@Lockslay note I added an additional line
-
file /usr/local/bin/node
/usr/local/bin/node: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=d6aa6eb3474758fb4e621dac8db78891d4f4c0ef, for GNU/Linux 3.2.0, with debug_info, not stripped, too many notes (256)Sorry,
I hadn’t seen the message -
@Lockslay yeh, something installed the 64 bit v of node on your 32 bit system.
let’s try this
sudo apt-get remove nodejsthen
node - v -
@sdetweil said in npm start Problem:
node - v
sudo apt-get remove nodejs
__dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/man/man7’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/man/man5’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/man/man1’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/lib/utils’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/docs/output/using-npm’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/docs/output/configuring-npm’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/docs/output/commands’ not empty so not removed
dpkg: warning: while removing nodejs, directory ‘/usr/lib/node_modules/npm/bin’ not empty so not removed
Processing triggers for man-db (2.9.4-2) …
stefan@smartmirror:~ $ node - v
-bash: /usr/local/bin/node: cannot execute binary file: Exec format error -
@Lockslay ok, next
sudo rm -rf /usr/lib/node_modules/npm sudo rm /usr/local/bin/node which node sudo apt-get remove nodejs hash -r which node node -v -
@sdetweil Thanks for your help, isn’t it better to reinstall?
I just realised that the config is no longer there either -
@Lockslay yes, probably.
flash SD card
boot
skip updates
use my scriptif u back up w my other script
I will restore the config, css, and modules on top.of the new mm after install
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login