• 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 install error

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 4 Posters 3.9k Views 3 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.
  • J Offline
    jkhania
    last edited by yawns Jan 23, 2017, 1:40 PM Jan 21, 2017, 4:11 AM

    I followed the manual install walk through.

    cd ~/MagicMirror
    npm install
    

    Now I’m getting an electron error. How do I troubleshoot this?

     electron@1.4.15 postinstall /home/pi/MagicMirror/node_modules/electron
     node install.js
    
    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! electron@1.4.15 postinstall: `node install.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the electron@1.4.15 postinstall script.
    npm ERR! This is most likely a problem with the electron package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node install.js
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls electron
    npm ERR! There is likely additional logging output above.
    
    npm ERR! System Linux 4.1.19-v7+
    npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
    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 ERR! 
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/pi/MagicMirror/npm-debug.log
    npm ERR! not ok code 0
    
    1 Reply Last reply Reply Quote 0
    • J Offline
      jkhania @morozgrafix
      last edited by Jan 23, 2017, 1:28 PM

      @morozgrafix Thank you morozgrafix. I discovered that the node instructions i found were wayyy old.

      I’ve updated it but ran into new problems. ha! Thanks everyone!

      C 1 Reply Last reply Jan 23, 2017, 1:49 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by Jan 21, 2017, 5:18 AM

        I would delete it and start over… something didn’t take… Are you installing it manually?

        1 Reply Last reply Reply Quote 0
        • M Offline
          morozgrafix Moderator
          last edited by Jan 21, 2017, 6:28 AM

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

          Those look like very old versions of npm and node. Can you please run following commands in your terminal and post output?

          node --version
          

          and

          npm --version
          

          Thanks.

          J 1 Reply Last reply Jan 23, 2017, 1:28 PM Reply Quote 1
          • ? Offline
            A Former User
            last edited by A Former User Jan 21, 2017, 7:28 PM Jan 21, 2017, 7:20 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • J Offline
              jkhania @morozgrafix
              last edited by Jan 23, 2017, 1:28 PM

              @morozgrafix Thank you morozgrafix. I discovered that the node instructions i found were wayyy old.

              I’ve updated it but ran into new problems. ha! Thanks everyone!

              C 1 Reply Last reply Jan 23, 2017, 1:49 PM Reply Quote 0
              • C Offline
                cowboysdude Module Developer @jkhania
                last edited by Jan 23, 2017, 1:49 PM

                @jkhania said in NPM install error:

                @morozgrafix Thank you morozgrafix. I discovered that the node instructions i found were wayyy old.

                I’ve updated it but ran into new problems. ha! Thanks everyone!

                Honestly the problems may be all the mixing that has happened. I would just start over with the new instructions ;)

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  1/6
                  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