Error when I run npm start on fresh raspbian stretch install
When I run npm start on a fresh install on raspbian stretch install i get the following in the debug file.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
10 verbose lifecycle [email protected]~start: CWD: /home/pi/MagicMirror
11 silly lifecycle [email protected]~start: Args: [ '-c', 'sh run-start.sh' ]
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: sh run-start.sh
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.sh run-start.sh
22 error Exit status 1
23 error Failed at the [email protected] start script 'sh run-start.sh'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the magicmirror package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error sh run-start.sh
23 error You can get information on how to open an issue for this project with:
23 error npm bugs magicmirror
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls magicmirror
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
I did a manual install. I got a warning during installation onto my RPi2B with a new install of Raspbian Stretch.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN prefer global [email protected] should be installed with -g npm WARN prefer global [email protected] should be installed with -g
The installation continued, and after some 5 mins, finished.
I'm a Linux & RPi newbie so I've no idea if I should now run 'npm install coffeescript' or not.
'npm start' worked and up popped the default mirror.
Got same issue with a fresh installation for Rasbian Strech Lite. Any workaround on this issue ?
Lite is not supported. Please state all the required version numbers to allow us to find an solution. Thanks!
See: https://github.com/MichMich/MagicMirror/blob/master/.github/ISSUE_TEMPLATE.md
Personally, I am using the full Raspbian Stretch. When I installed I had a fresh install of Stretch.
Thank you,
Andrew Bowman
From: Michael Teeuw Sent: Saturday, December 30, 2017 3:11 PM To: MichMich/MagicMirror Cc: abacon118; Author Subject: Re: [MichMich/MagicMirror] Error when I run npm start on freshraspbian stretch install (#1103)
Lite is not supported. Please state all the required version numbers to allow us to find an solution. Thanks! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I am using the full Raspbian Stretch install too. The mirror is working fine. I was just curious about the Coffee script warning and thought the developer should know.
On 31 December 2017 at 12:20, abacon118 [email protected] wrote:
Personally, I am using the full Raspbian Stretch. When I installed I had a fresh install of Stretch.
Thank you,
Andrew Bowman
From: Michael Teeuw Sent: Saturday, December 30, 2017 3:11 PM To: MichMich/MagicMirror Cc: abacon118; Author Subject: Re: [MichMich/MagicMirror] Error when I run npm start on freshraspbian stretch install (#1103)
Lite is not supported. Please state all the required version numbers to allow us to find an solution. Thanks! — You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1103#issuecomment-354579140, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLg-t1Y_idIgfOlffxnNONW-dA6ywXyks5tFuFcgaJpZM4Q_3cn .
You can ignore the coffee script warning. So considering the mirror works. Can I close this issue?
that's a yes from me.
On 31 December 2017 at 22:38, Michael Teeuw [email protected] wrote:
You can ignore the coffee script warning. So considering the mirror works. Can I close this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1103#issuecomment-354599235, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLg-jlZwA2n1nAM3MBqI20xGAAwxG-iks5tF3JQgaJpZM4Q_3cn .
No. When i have a chance i will send you a picture of the error message.
Thank you,
Andrew Bowman
On Dec 31, 2017 7:59 AM, "mfread" [email protected] wrote:
that's a yes from me.
On 31 December 2017 at 22:38, Michael Teeuw [email protected] wrote:
You can ignore the coffee script warning. So considering the mirror works. Can I close this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MichMich/MagicMirror/issues/1103# issuecomment-354599235>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABLg- jlZwA2n1nAM3MBqI20xGAAwxG-iks5tF3JQgaJpZM4Q_3cn> .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1103#issuecomment-354602495, or mute the thread https://github.com/notifications/unsubscribe-auth/Acnv-ixNn_IBZzLs9oNnVK8IFBxjmpqSks5tF4VNgaJpZM4Q_3cn .
When I run the script to start it, this is what comes out in the debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: sh run-start.sh
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.sh run-start.sh
17 error Exit status 1
18 error Failed at the [email protected] start script 'sh run-start.sh'.
18 error This is most likely a problem with the magicmirror package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error sh run-start.sh
18 error You can get their info via:
18 error npm owner ls magicmirror
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
On Thu, Dec 28, 2017 at 7:15 AM, mfread [email protected] wrote:
I did a manual install. I got a warning during installation onto my RPi2B with a new install of Raspbian Stretch.
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) npm WARN prefer global [email protected] should be installed with -g npm WARN prefer global [email protected] should be installed with -g
The installation continued, and after some 5 mins, finished.
I'm a Linux & RPi newbie so I've no idea if I should now run 'npm install coffeescript' or not.
'npm start' worked and up popped the default mirror.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1103#issuecomment-354241631, or mute the thread https://github.com/notifications/unsubscribe-auth/Acnv-sB_40LwC5-3xruSMO2YYi5Styhcks5tEz_1gaJpZM4Q_3cn .
-- Thank You,
Andrew Bowman
Could you try reinstalling MagicMirror? We made some changes to the dependencies. Make sure you backup your config.js file (and modules).
@MichMich,
I've just done a fresh install of MagicMirror and also encountered those errors above.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/b$
9 verbose lifecycle [email protected]~start: CWD: /home/pi/MagicMirror
10 silly lifecycle [email protected]~start: Args: [ '-c', 'sh run-start.sh' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: 'sh run-start.sh'
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16)
13 verbose stack at EventEmitter.emit (events.js:159:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:159:13)
13 verbose stack at maybeClose (internal/child_process.js:943:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/pi/MagicMirror
16 verbose Linux 4.9.73-v7+
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v9.3.0
19 verbose npm v5.5.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: 'sh run-start.sh'
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Info as follows: Platform: Raspberry Pi 3
Node Version: v9.3.0
MagicMirror Version: v2.2.2
Description: Upon boot, I have errors in my log file as seen above.
Steps to Reproduce: Boot up RPi3
Expected Results: No errors
Actual Results: No actually degradation. Still works ok but thought you might like to know.
Configuration: Config file can be seen here https://hastebin.com/efinepepek.js
Additional Notes: Also getting a Fontconfig error:
0|mm | Fontconfig warning: ignoring UTF-8: not a valid region tag
0|mm | Fontconfig warning: ignoring UTF-8: not a valid region tag
I just did all this yesterday on the latest full Raspbian Stretch on a Rpi3, and it works fine. However, you must make sure you have first successfully installed and updated
- Node.js (v9.3.0)
- NPM (5.6.0)
- PM2 (2.9.1)
Yes, the installation script may need some tweaking for the Stretch...but it shouldn't fail. If the script fails try installing everything manually. Did you setup your Rpi3 according to docs here?
An updated installer script PR is extremely welcome! And would be rewarded with a bunch of internet-hugs!
@MichMich Yeah, I've been working on one, but I don't have an ETA yet.
What has been most annoying in the installation process, was to make sure all the node stuff was already installed properly, before running anything else. And that is the more HW and OS (release) dependent aspect of it. There are simply too many contorted, wrong and outdated descriptions of how to do that out there.
I too am getting about the same error log on full stretch.
Node.js (v9.3.0) NPM (5.6.0) PM2 (2.9.1)
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /home/pi/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/home/pi/.nvm/versions/node/v9.3.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle [email protected]~start: CWD: /home/pi/MagicMirror
10 silly lifecycle [email protected]~start: Args: [ '-c', 'sh run-start.sh' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `sh run-start.sh`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/home/pi/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:159:13)
13 verbose stack at ChildProcess.<anonymous> (/home/pi/.nvm/versions/node/v9.3.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:159:13)
13 verbose stack at maybeClose (internal/child_process.js:943:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/pi/MagicMirror
16 verbose Linux 4.9.59-v7+
17 verbose argv "/home/pi/.nvm/versions/node/v9.3.0/bin/node" "/home/pi/.nvm/versions/node/v9.3.0/bin/npm" "start"
18 verbose node v9.3.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `sh run-start.sh`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
@leveneg Without seeing the exact command you did before getting this error log, its prety much useless. Also describe and post the exact commands you used for installing/updating.
@E3V3A my apologies- I thought that had been included. I was running DISPLAY=:0 npm start, as specified in the install output.
Initial installation was done on a fresh stretch install via install script.
After that didn't work I reflashed stretch, installed latest node / npm, then installed once again via the installation script with the same result.
Just FYI, I didn't use the full installation script. I basically went through it manually and skipping things that I had already changed or seemed irrelevant. That's why I can't be of much help here. Especially I recall skipping the part changing the bootup splash screen and themes. These are not ncessary, and seemed suspicious. Instead I just replaced the spalsh image manually later, once MM was working.
I think one reason why people seem to be having issues is, whether or not they're booting into X or the CLI.
I finally tracked down the problem I was having to trying to start MM without having X running first. This needs to be made clearer.
@MichMich For now, we should tag this issue cantfix because it does not come from a problem with our codebase, instead coming from Stretch and Electron compatibility.