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.

Inform RPi users that npm install take a long time

See original GitHub issue

When I installed MM on my Rpi3 last night, I was quite surprised to see how long it took, without any info at all given to the user while waiting. We live in times of impatience, so when the npm native progress indicator disappeared for almost 8 minutes, after 2 minutes of completing many progress bars, I was getting concerned. Especially given that installing the entire OS only took about half the time.

cd $HOME
git clone https://github.com/MichMich/MagicMirror.git
cd MagicMirror

# Install node dependencies (on Vanilla Stretch)
npm install
...
<eat your nails>
<scratch your balls (or what have you)>
<rip your hair out>
...
added 811 packages in 568.737s

That is almost 8 minutes without any progress bar! Also, a basic MM install, take up: 348 MB (not including any additional OS related installations.)

cd $HOME/MagicMirror/ && du -sh ./

We should put this in the README. I’m sure many (and even technical) users may freak out long before those 10 minutes are up.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
amcolashcommented, Jan 11, 2018

Ironic that I was just browsing the issue tracker, I just updated my rpi2 mm install and it took 25+ min! I know npm can be slow (so I was patient), but wow that was a shock.

1reaction
MichMichcommented, Jan 6, 2018

Or we can run NPM in verbose mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install on raspbian takes much time - Stack Overflow
Running the same command on my Windows pc takes maybe 2 or 3 minutes (updating goes way faster of course). Is this normal...
Read more >
Broken Packages prevent install - Raspberry Pi Forums
Hi, I'm trying to install npm but it keeps telling me I have broken packages. But I can't seem to locate/fix it.
Read more >
Install Nodejs and NPM on Raspberry Pi [Step-by-Step]
Step by step instructions to install nodejs and npm on raspberry pi. 2 different methods to install and configure nodejs and npm on...
Read more >
Getting NPM installed on Raspberry Pi (Wheezy Image)
Try installing them all together: sudo apt-get install nodejs npm node-semver.
Read more >
systeminformation - npm
Latest version: 5.16.9, last published: 5 days ago. ... simple to use; get detailed information about system, cpu, baseboard, battery, ...
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