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.

    Unable to update to latest version of Node.js and npm

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 4 Posters 9.9k Views 4 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.
    • S Offline
      sdetweil @ernenr1
      last edited by

      @ernenr1 try this

      https://www.battlehillmedia.com/installing-node-js-and-npm-on-raspberry-pi-3/

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      E 1 Reply Last reply Reply Quote 1
      • E Offline
        ernenr1 @sdetweil
        last edited by

        @sdetweil Thank you very much! This actually worked!

        1 Reply Last reply Reply Quote 0
        • B Offline
          bminer1
          last edited by

          I am not having much luck with this. Been searching and trying everything…

          i@raspberrypi:~ $ node -v
          v10.15.2
          pi@raspberrypi:~ $ npm -v
          bash: npm: command not found
          
          S 1 Reply Last reply Reply Quote 0
          • E Offline
            EdO
            last edited by

            I’ve used this to update npm:

            npm install npm@latest -g

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @bminer1
              last edited by

              @bminer1 yes, they split the npm install off from the node install… so you have to do two now

              sudo apt-get install npm
              then sudo npm i -g npm ( as it updated the usr/lib folder)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @EdO
                last edited by sdetweil

                @EdO he doesn’t have npm yet… see my post above

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bminer1
                  last edited by

                  This website was exactly what i needed to get the latest version and it worked.

                  https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @bminer1
                    last edited by

                    @bminer1 in the future if you use the installer, it will handle this

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bminer1
                      last edited by

                      I went through all of the avenues and this was the only way it stuck.
                      I am creating a second MM Pi so ill try it again on this Pi.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @bminer1
                        last edited by

                        @bminer1 use the new installer script

                        see https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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