Unable to update to latest version of Node.js and npm
ernenr1 last edited by
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?
sdetweil last edited by
ernenr1 last edited by
@sdetweil Thank you very much! This actually worked!