• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

npm start doesn't work

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.7k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    Tschanz
    last edited by Dec 28, 2017, 8:32 PM

    I hope someone is able to help me. If i type npm start the following error message appears:

    pi@raspberrypi:~/MagicMirror $ npm start
    
    > magicmirror@2.1.3 start /home/pi/MagicMirror
    > sh run-start.sh
    
    run-start.sh: 4: run-start.sh: electron: not found
    
    npm ERR! magicmirror@2.1.3 start: `sh run-start.sh`
    npm ERR! Exit status 127
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.1.3 start script.
    npm ERR! This is most likely a problem with the magicmirror package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     sh run-start.sh
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls magicmirror
    npm ERR! There is likely additional logging output above.
    npm ERR! System Linux 4.4.34-v7+
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
    npm ERR! cwd /home/pi/MagicMirror
    npm ERR! node -v v0.10.29
    npm ERR! npm -v 1.4.21
    npm ERR! code ELIFECYCLE
    npm WARN This failure might be due to the use of legacy binary "node"
    npm WARN For further explanations, please read
    /usr/share/doc/nodejs/README.Debian
     
    npm ERR! 
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/pi/MagicMirror/npm-debug.log
    npm ERR! not ok code 0
    pi@raspberrypi:~/MagicMirror $ 
    
    M 1 Reply Last reply Dec 29, 2017, 1:31 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Tschanz
      last edited by Mykle1 Dec 29, 2017, 1:32 AM Dec 29, 2017, 1:31 AM

      @Tschanz said in npm start doesn’t work:

      npm ERR! node -v v0.10.29
      npm ERR! npm -v 1.4.21

      You need to update your node which should also update your npm

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • T Offline
        Tschanz
        last edited by Dec 29, 2017, 11:54 AM

        I have tried :

        $ sudo apt update
        

        and

        $ sudo apt install nodejs
        

        But there is still the same error. I hope somebody can help me.:)

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy