• 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.

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

Scheduled Pinned Locked Moved Solved Troubleshooting
11 Posts 4 Posters 8.8k 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.
  • E Offline
    ernenr1 @sdetweil
    last edited by Feb 3, 2019, 10:17 PM

    @sdetweil Thank you very much! This actually worked!

    1 Reply Last reply Reply Quote 0
    • B Offline
      bminer1
      last edited by Nov 21, 2019, 9:26 PM

      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 Nov 21, 2019, 10:38 PM Reply Quote 0
      • E Offline
        EdO
        last edited by Nov 21, 2019, 9:55 PM

        I’ve used this to update npm:

        npm install npm@latest -g

        S 1 Reply Last reply Nov 21, 2019, 10:38 PM Reply Quote 0
        • S Away
          sdetweil @bminer1
          last edited by Nov 21, 2019, 10:38 PM

          @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 Away
            sdetweil @EdO
            last edited by sdetweil Nov 21, 2019, 10:39 PM Nov 21, 2019, 10:38 PM

            @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 Nov 22, 2019, 1:46 PM

              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 Nov 22, 2019, 1:47 PM Reply Quote 0
              • S Away
                sdetweil @bminer1
                last edited by Nov 22, 2019, 1:47 PM

                @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 Nov 22, 2019, 1:49 PM

                  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 Nov 22, 2019, 1:49 PM Reply Quote 0
                  • S Away
                    sdetweil @bminer1
                    last edited by Nov 22, 2019, 1:49 PM

                    @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