Read the statement by Michael Teeuw here.
Problem: npm install && npm start
-
@Jeff as the error tells you have to upgrade first node in order to update npm, you’re running node 0.10 there is already version 7.x
-
Can you tell me the right code, please?
I could try some versions, but I don’t want mess everything up.I tied:
pi@raspberrypi:~ $ sudo npm cache clean -f npm WARN npm npm does not support Node.js v0.10.29 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm You can find the latest version at https://nodejs.org/ npm WARN using --force I sure hope you know what you are doing. pi@raspberrypi:~ $
-
Oh snap, @strawberry-3-141 is right. Of course, I meant, that your nide version is too old. Did you try to update/install node via
apt
? Tryapt-get update && apt-get upgrade
orapt-get install nodejs
and see, if it helps.If it doesn’t work, follow the instructions here, to install a recent version of node: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
-
great! That worked out.
Thanks alotI was trying it that way
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz tar -xvf node-v4.0.0-linux-armv7l.tar.gz cd node-v4.0.0-linux-armv7l
Just for the latest version…
But okay…
Now I need to install npm as you said in your first post?
Edit:
I think it works now. At least the screen pops up.
Just the weather forecast isn’t working right now.Can you have look at the code if everythin is correct so far?
pi@raspberrypi:~/MagicMirror $ npm install && npm start npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`. npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.) npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information. > magicmirror@2.0.0 prepublish /home/pi/MagicMirror > npm run snyk-protect > magicmirror@2.0.0 snyk-protect /home/pi/MagicMirror > snyk protect Successfully applied Snyk patches npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed. > magicmirror@2.0.0 start /home/pi/MagicMirror > electron js/electron.js Loading config ... Loading module helpers ... No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... All module helpers loaded. Starting server op port 8080 ... Server started ... Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000 Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 pi@raspberrypi:~/MagicMirror $ pi@raspberrypi:~/MagicMirror $ ^C pi@raspberrypi:~/MagicMirror $ sudo npm install && npm start npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`. npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.) npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information. npm WARN lifecycle magicmirror@2.0.0~prepublish: cannot run in wd %s %s (wd=%s) magicmirror@2.0.0 npm run snyk-protect /home/pi/MagicMirror npm WARN grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed. > magicmirror@2.0.0 start /home/pi/MagicMirror > electron js/electron.js Loading config ... Loading module helpers ... No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... All module helpers loaded. Starting server op port 8080 ... Server started ... Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application. Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000 Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
-
Today I reinstalled my Pi.
This time with Noob style, but with the image itself.After that, the automatic MagicMirror installation worked finde. Everything was updated correctly. Yesterday it didn’t work at all.
Also I had the problem that google clalenders would not show up in the Magic Mirror.
Today everything works fine.Maybe there is a problem with Noob installation?!