Unable to update to latest version of Node.js and npm
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 Thank you very much! This actually worked!
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
I’ve used this to update npm:
npm install npm@latest -g
@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)
@EdO he doesn’t have npm yet… see my post above
This website was exactly what i needed to get the latest version and it worked.
@bminer1 in the future if you use the installer, it will handle this
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.