question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in npm install while installing vendor files please help

See original GitHub issue

pi@raspberrypi:~/MagicMirror $ npm install npm WARN deprecated time-grunt@2.0.0: 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/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.

electron-chromedriver@6.0.0 install /home/pi/MagicMirror/node_modules/electron-chromedriver node ./download-chromedriver.js

core-js@2.6.11 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 -)

console-stamp@0.2.9 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

electron@6.1.7 postinstall /home/pi/MagicMirror/node_modules/electron node install.js

magicmirror@2.11.0 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! magicmirror@2.11.0 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 magicmirror@2.11.0 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:70 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sdetweilcommented, Apr 28, 2020

u can also erase the npm cache and registry

sudo rm -rf ~/.npm

1reaction
sdetweilcommented, Apr 9, 2020

@WynandL looks like a missing library

apt-get install libgtk2.0-0

the system requires a graphical desktop version of the OS… not commandline (cli)

Read more comments on GitHub >

github_iconTop Results From Across the Web

What could cause an error related to npm not being able to ...
1. Make sure you have the latest npm (npm install -g npm). 2. Add an exception to your antivirus to ignore the node_modules...
Read more >
Common errors | npm Docs
Common errors · Errors · Broken npm installation · Random errors · No compatible version found · Permissions errors · Error: ENOENT, stat...
Read more >
Fixing your NPM Installation - Hackers and Slackers
Why does this happen? Because by default, the post-install scripts attempt to run as the current user. Since the current user doesn't have...
Read more >
i am trying to install the big commences stencil project . but i ...
This usually happens because your node version has changed. Run `npm rebuild node-sass` to build the binding for your current node version. at...
Read more >
Troubleshooting - Composer
Try clearing Composer's cache by running composer clear-cache . Ensure you're installing vendors straight from your composer.json via rm -rf vendor && composer ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found