Read the statement by Michael Teeuw here.
Complete Setup tutorial: npm command not found / unable to install dependencies
-
@Mr.Meeseeks said in Complete Setup tutorial: npm command not found / unable to install dependencies:
I had same problem so I ran this:
curl -L https://npmjs.org/install.sh | sudo sh
Thanks a lot. But when I run this I get the message that the certificate is not yet valid and if I´d like to turn off the curl´s verification of the certificate I have to use the -k option. Any hints about that?
-
@Blamer I guess then use http:// instead, odd I didn’t get that.
-
Oh I know, check that your system date and time is correct.
If there is internet connection available follow the steps to set the date:
- sudo raspi-config
- Internationalization options
- Change Time Zone
- Select geographical area
- Select city or region.
- Reboot your pi.
Maybe:
sudo date -s “19 SEP 2016 20:37:00” -
@Mr.Meeseeks said in Complete Setup tutorial: npm command not found / unable to install dependencies:
Oh I know, check that your system date and time is correct.
If there is internet connection available follow the steps to set the date:
- sudo raspi-config
- Internationalization options
- Change Time Zone
- Select geographical area
- Select city or region.
- Reboot your pi.
Maybe:
sudo date -s “19 SEP 2016 20:37:00”Excellent! For some reason I wasn´t able to set the correct time and date via raspi-config. Using sudo date -s “19 SEP 2016 20:37:00” solved the problem. After that I was able to run curl -L https://npmjs.org/install.sh | sudo sh. The install script curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash went through just like a charm!
Although I still do not understand the connection between the wrong set time and date and the installation I´m very happy to run MM now. Now I have to configure the modules.
–> A WORLD OF THANKS TO YOU!! -
Wicked!
Ya the date time solved the https certificate issue. I also don’t know why we had to install npm manually and no one else did. Oh well, I’m sure this thread will help others👍 -
Honestly what I would do is format the SD card put the rasp img on the SD card then open a terminal window and do the
sudo apt-get update
sudo apt-get upgrade
then go to installing the mirror via the install script.
Note from admin: Please use Markdown on code snippets for easier reading!
-
I tried that several times and it didn´t work! My Raspberry is probably some sort of unique…
-
That’s interesting to say the least… did you try the manual install?
-
Of course I did. I tried the automatic and manual install with a formated SD card several times.
That´s the setup I´m using:
Raspberry Pi: https://www.amazon.de/gp/product/B01CEFWQFA/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1SD- Card: https://www.amazon.de/gp/product/B013UDL5V6/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=
Keyboard: https://www.amazon.de/Logitech-Keyboard-QWERTZ-deutsches-Tastaturlayout/dp/B003PAMIA2/ref=sr_1_1?s=ce-de&ie=UTF8&qid=1474639200&sr=1-1 keywords=logitech+K120
Power Source: https://www.amazon.de/gp/product/B01DBYGV04/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
OS: 2016-05-27 raspbian jessie
Right now MM runs fine with the above mentioned commands. The only problem that remains is that the system clock of the Raspberry still doesn´t synchronize with the Internet. After using “sudo date -s “20 SEP 2016 20:37:00”” the system clock remains on the 20th of September, 22:26h. Hope I can fix that this weekend. Any suggestions are highly appreciated. Thanks.
-
Is ntp running? Is your firewall blocking it?