Read the statement by Michael Teeuw here.
PM2 autostart script not working since last MM update
-
Hi all,
Since the last MM update my pm2 autostart script has not been working. Im pretty sure Ive updated all of the supporting software, but let me know if there is a version of anything I should double check.
The mm.sh script is as posted and worked fine before the update:
cd ./MagicMirror
DISPLAY=:0 npm run startpm2 logs shows:
/home/rpi/mm.sh: line 2: npm: command not foundWhen I run npm run start in the terminal everything starts up just fine.
What did I miss?
-
@meshuggahn how did you update MagicMirror ?
my script or manually ?can you show the output of
which npm -
which npm gives:
/run/user/1000/fnm_multishells/23578_1753385757014/bin/npmnpm -v gives:
11.4.0 -
@meshuggahn what os is this?
i expected /usr/bin/npm
or /usr/local/bin/npm -
Raspbian v12.
Would reinstalling node.js and npm be a good idea? This environment is new to me and always feels so cumbersome.
Thanks for your help BTW.
-
@meshuggahn i have no idea, this directory /run/usr, seems to be related to flatpack, but i have not seen nodejs/npm in flatpack packages
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