building modules activeevents.js throw er;

Problem:

building modules 1/1 modules 0 activeevents.js:183                            
      throw er;

Solution:

But, once I tested it with sudo in terminal, it worked:

sudo npm run serve

Refer:

https://stackoverflow.com/a/52904003/1280694