MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Error in npm install while installing vendor files please help

Open PoojaAmin29 opened this issue 6 years ago • 70 comments

pi@raspberrypi:~/MagicMirror $ npm install npm WARN deprecated [email protected]: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates. npm WARN deprecated @types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.

[email protected] install /home/pi/MagicMirror/node_modules/electron-chromedriver node ./download-chromedriver.js

[email protected] postinstall /home/pi/MagicMirror/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

[email protected] postinstall /home/pi/MagicMirror/node_modules/console-stamp node ./msg.js

Attention Console-stamp version 3.0.0 Release Candidate is out. Install by using the tag '@next'. NB: Breaking changes. For more details goto: https://www.npmjs.com/package/console-stamp/v/next

[email protected] postinstall /home/pi/MagicMirror/node_modules/electron node install.js

[email protected] install /home/pi/MagicMirror echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error

Installing vendor files ...

npm ERR! Unexpected end of JSON input while parsing near '...5vp6b8jEE6P9iUqepRgrK'

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-03T14_15_02_623Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: echo "Installing vendor files ... npm ERR! " && cd vendor && npm install --loglevel=error npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-03T14_15_02_963Z-debug.log

please help i am new to this

PoojaAmin29 avatar Apr 03 '20 14:04 PoojaAmin29

I am getting the same errors on RPI3 - used manual and automatic install, but getting exactly the same set of npm ERR! messages...

WynandL avatar Apr 04 '20 10:04 WynandL

are you upgrading or installing?

sdetweil avatar Apr 05 '20 17:04 sdetweil

Hi, I was installing...used the app a while ago but this was on a fresh install...

On Sun, 05 Apr 2020, 19:09 sam detweiler, [email protected] wrote:

are you upgrading or installing?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1972#issuecomment-609449205, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVZIPJLO67DNZE5VWCGHUDRLC3MTANCNFSM4L4CQSIQ .

WynandL avatar Apr 05 '20 18:04 WynandL

ok.. it would be interesting if my automated install script handles this.. see https://github.com/sdetweil/MagicMirror_scripts have to rename MM folder out of the way 1st..

i just fixed a problem in vendor npm install for the roboto-fontface install being downlevel.

I think the problem was caused by the package-lock.json file, which should be erased for new installs.

sdetweil avatar Apr 05 '20 18:04 sdetweil

Rename MM folder to ?

On Mon, 6 Apr 2020, 00:25 sam detweiler, [email protected] wrote:

ok.. it would be interesting if my automated install script handles this.. see https://github.com/sdetweil/MagicMirror_scripts have to rename MM folder out of the way 1st..

i just fixed a problem in vendor npm install for the roboto-fontface install being downlevel.

I think the problem was caused by the package-lock.json file, which should be erased for new installs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1972#issuecomment-609464581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTYL3XYTVIAA3NR2SCJR3DRLDH2LANCNFSM4L4CQSIQ .

PoojaAmin29 avatar Apr 08 '20 01:04 PoojaAmin29

Anything not 'MagicMirror'

sdetweil avatar Apr 08 '20 01:04 sdetweil

Please help

PoojaAmin29 avatar Apr 08 '20 04:04 PoojaAmin29

you are installing on windows.. not very tested...

first, always do npm install --only=prod this will stop installing the code used for the testing cycle second sh is not a command, true.. you will have to examine the .sh files and run those commands manually

last ChecksumMismatchError: Generated checksum for "electron-v3.1.13-win32-x64.zip" d id not match expected checksum.

don't know... that sounds like network error, or disk error

sdetweil avatar Apr 08 '20 12:04 sdetweil

I tried to install Magic Mirror v2.10.1 on my raspberry pi 3 and npm install successfully installed magic mirror but when i did npm start it gives this error pi@raspberrypi:~/MagicMirror $ npm start

[email protected] start /home/pi/MagicMirror ./run-start.sh

sh: 1: ./run-start.sh: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! [email protected] start: ./run-start.sh npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-08T12_59_27_220Z-debug.log

Please help

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

you are installing on windows.. not very tested...

first, always do npm install --only=prod this will stop installing the code used for the testing cycle second sh is not a command, true.. you will have to examine the .sh files and run those commands manually

last ChecksumMismatchError: Generated checksum for "electron-v3.1.13-win32-x64.zip" d id not match expected checksum.

don't know... that sounds like network error, or disk error

Thanks sir for your reply

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

yes, you also have to change the package.json start command

from

"start":"./run-start.sh",

to

"start":"node-modules/.bin/electron %1",

the MM is assumed to be running on some linux system.

sdetweil avatar Apr 08 '20 13:04 sdetweil

I am running MM on rpi 3

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

E:\MagicMirror-master>npm install electron-v3.1.13-win32-x64.zip

messages say different

sdetweil avatar Apr 08 '20 13:04 sdetweil

its the previous one which i was trying on windows

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

I did the changes in package.json file but it still gives error

pi@raspberrypi:~/MagicMirror $ npm start

[email protected] start /home/pi/MagicMirror node-modules/.bin/electron %1

sh: 1: node-modules/.bin/electron: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! [email protected] start: node-modules/.bin/electron %1 npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-08T13_21_52_731Z-debug.log

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

sorryy, I missed that change

please tun my install script..

in electron is not installed, you have trouble

rename MM folder out of the way, then run

bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

sdetweil avatar Apr 08 '20 13:04 sdetweil

i did bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)" i wanted to ask does it take time as it as stuck on a line for around 5 minutes, sorry for this silly question

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

it can take some time, as it is upgrading the system, as we need components that have been updated.

sdetweil avatar Apr 08 '20 13:04 sdetweil

ok thanks sir once again for your reply i will notify once done

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29

pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

$$\ $$\ $$\ $$\ $$\ $$\ $$$$$$
$$$\ $$$ | _| $$$\ $$$ |_| $$ $$
$$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ _/ $$ | $$$$$$ $$ | _
$$\ $$ $$\ $$ |$$ |$$$$$$ $$ |$$ |$$ $$\ $$ $$\ $$ $$\ $$ $$\ $$$$$$ | $$ $$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ $$$ $$ |$$ |$$ | _|$$ | _|$$ / $$ |$$ | _|$$ / $$ |$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | _/ $$ |$$$$$$$ |$$$$$$$ |$$ |$$$$$$$\ $$ | _/ $$ |$$ |$$ | $$ | $$$$$$ |$$ | $$$$$$$$
_
| _
| _
| _
$$ |_| _
|_| _|_|_| __| _
/ _| _______| $$\ $$ | $$$$$$ | _____/

install log being saved to /home/pi/install.log Updating packages ... Installing helper tools ... Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v10.1.0 Installed Node version: v10.19.0 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V6.0.0 Installed npm version: V6.13.4 No npm upgrade necessary. Cloning MagicMirror ... Cloning into 'MagicMirror'... remote: Enumerating objects: 316, done. remote: Counting objects: 100% (316/316), done. remote: Compressing objects: 100% (276/276), done. remote: Total 316 (delta 43), reused 179 (delta 27), pack-reused 0 Receiving objects: 100% (316/316), 437.96 KiB | 368.00 KiB/s, done. Resolving deltas: 100% (43/43), done. Cloning MagicMirror Done! Installing dependencies ... npm WARN deprecated [email protected]: Deprecated because Grunt is practically unmaintained. Move on to something better. This package will continue to work with Grunt v1, but it will not receive any updates. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Please use rrule instead npm WARN deprecated [email protected]: use String.prototype.padStart() npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: outdated version, please use @next npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated @types/[email protected]: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.

This is going on correctly just confirming

PoojaAmin29 avatar Apr 08 '20 13:04 PoojaAmin29