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.

    Problem: npm install && npm start

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 3 Posters 18.1k 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @Jeff
      last edited by

      @Jeff as the error tells you have to upgrade first node in order to update npm, you’re running node 0.10 there is already version 7.x

      Please create a github issue if you need help, so I can keep track

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        Jeff @strawberry 3.141
        last edited by Jeff

        @strawberry-3.141

        Can you tell me the right code, please?
        I could try some versions, but I don’t want mess everything up.

        I tied:

        pi@raspberrypi:~ $ sudo npm cache clean -f
        npm WARN npm npm does not support Node.js v0.10.29
        npm WARN npm You should probably upgrade to a newer version of node as we
        npm WARN npm can't make any promises that npm will work with this version.
        npm WARN npm You can find the latest version at https://nodejs.org/
        npm WARN using --force I sure hope you know what you are doing.
        pi@raspberrypi:~ $
        1 Reply Last reply Reply Quote 0
        • BehB Offline
          Beh
          last edited by Beh

          Oh snap, @strawberry-3-141 is right. Of course, I meant, that your nide version is too old. Did you try to update/install node via apt? Try apt-get update && apt-get upgrade or apt-get install nodejs and see, if it helps.

          If it doesn’t work, follow the instructions here, to install a recent version of node: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jeff
            last edited by Jeff

            great! That worked out.
            Thanks alot

            I was trying it that way

            wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz 
            tar -xvf node-v4.0.0-linux-armv7l.tar.gz 
            cd node-v4.0.0-linux-armv7l
            

            Just for the latest version…

            But okay…

            Now I need to install npm as you said in your first post?

            Edit:
            I think it works now. At least the screen pops up.
            Just the weather forecast isn’t working right now.

            Can you have look at the code if everythin is correct so far?

            pi@raspberrypi:~/MagicMirror $ npm install && npm start
            npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
            npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
            npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
            
            > magicmirror@2.0.0 prepublish /home/pi/MagicMirror
            > npm run snyk-protect
            
            
            > magicmirror@2.0.0 snyk-protect /home/pi/MagicMirror
            > snyk protect
            
            Successfully applied Snyk patches
            npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed.
            
            > magicmirror@2.0.0 start /home/pi/MagicMirror
            > electron js/electron.js
            
            
            Loading config ...
            Loading module helpers ...
            No helper found for module: alert.
            No helper found for module: clock.
            Initializing new module helper ...
            No helper found for module: compliments.
            No helper found for module: currentweather.
            No helper found for module: weatherforecast.
            Initializing new module helper ...
            All module helpers loaded.
            Starting server op port 8080 ... 
            Server started ...
            Connecting socket for: calendar
            Starting node helper for: calendar
            Connecting socket for: newsfeed
            Starting module: newsfeed
            Sockets connected & modules started ...
            Launching application.
            Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
            Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
            pi@raspberrypi:~/MagicMirror $ 
            pi@raspberrypi:~/MagicMirror $ ^C
            pi@raspberrypi:~/MagicMirror $ sudo npm install && npm start
            npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
            npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
            npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
            npm WARN lifecycle magicmirror@2.0.0~prepublish: cannot run in wd %s %s (wd=%s) magicmirror@2.0.0 npm run snyk-protect /home/pi/MagicMirror
            npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed.
            
            > magicmirror@2.0.0 start /home/pi/MagicMirror
            > electron js/electron.js
            
            Loading config ...
            Loading module helpers ...
            No helper found for module: alert.
            No helper found for module: clock.
            Initializing new module helper ...
            No helper found for module: compliments.
            No helper found for module: currentweather.
            No helper found for module: weatherforecast.
            Initializing new module helper ...
            All module helpers loaded.
            Starting server op port 8080 ... 
            Server started ...
            Connecting socket for: calendar
            Starting node helper for: calendar
            Connecting socket for: newsfeed
            Starting module: newsfeed
            Sockets connected & modules started ...
            Launching application.
            Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
            Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
            1 Reply Last reply Reply Quote 0
            • J Offline
              Jeff
              last edited by

              Today I reinstalled my Pi.
              This time with Noob style, but with the image itself.

              After that, the automatic MagicMirror installation worked finde. Everything was updated correctly. Yesterday it didn’t work at all.
              Also I had the problem that google clalenders would not show up in the Magic Mirror.
              Today everything works fine.

              Maybe there is a problem with Noob installation?!

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