• 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
    last edited by Feb 3, 2019, 5:39 PM

    Hi! This is my first time installing Magic Mirror and I have been attempting to install it through a manual install. I currently have Raspbian Desktop installed on an old Thinkpad x41. The specs are as listed:

    Architecture:          i686
    CPU op-mode(s):        32-bit
    Byte Order:            Little Endian
    CPU(s):                1
    On-line CPU(s) list:   0
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 13
    Model name:            Intel(R) Pentium(R) M processor 1.50GHz
    Stepping:              8
    CPU MHz:               600.000
    CPU max MHz:           1500.0000
    CPU min MHz:           600.0000
    BogoMIPS:              1197.04
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx bts est tm2
    

    Now the issue is that when I reach to the npm install step of the installation, I am returned with this error.

    pi@raspberry:~/MagicMirror $ npm install && npm start
    -bash: npm: command not found
    

    I have a feeling the issue is due to the version of Node.js. and the inability to install npm. The latest version I have installed 8.11.1. and then when I check the version of npm installed its missing.

    pi@raspberry:~/MagicMirror $ sudo apt-get install -y nodejs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    nodejs is already the newest version (8.11.1~dfsg-2~bpo9+1).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    
    pi@raspberry:~ $ npm -v
    -bash: npm: command not found
    

    If I try to install npm, I get this error.

    pi@raspberry:~ $ sudo apt-get install npm
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'nodejs:amd64' instead of 'npm:amd64'
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     nodejs:amd64 : Depends: python-minimal:amd64 but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    

    Is the reason as to why I am running into both of these issues due to the hardware limitation of my Thinkpad being a 32-bit machine? If so, is there any way to update to the 10.x version of Node.js with a 32-bit machine?

    S 1 Reply Last reply Feb 3, 2019, 7:53 PM Reply Quote 0
    • S Offline
      sdetweil @ernenr1
      last edited by Feb 3, 2019, 7:53 PM

      @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 Feb 3, 2019, 10:17 PM Reply Quote 1
      • 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 Offline
              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 Offline
                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 Offline
                    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
                      • 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