bitpay / insight

A bitcoin blockchain explorer and API
https://insight.bitpay.com/
MIT License
1.19k stars 1.11k forks source link

Error: Cannot find module '/root/insight/app/node_modules/@ionic/app-scripts' #921

Open BarneyChambers opened 6 years ago

BarneyChambers commented 6 years ago

Are there dependencies missing that I need to install before I can run sudo npm start. I have followed the build instructions, but when I am in the insight folder, I get the following error when I attempt to run sudo npm start

> ionic serve

Error: Cannot find module '/root/insight/app/node_modules/@ionic/app-scripts'
    at Function.Module._resolveFilename (module.js:543:15)
    at Function.Module._load (module.js:470:25)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/insight/app/node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:9:16)
    at Generator.next (<anonymous>)
    at /root/insight/app/node_modules/@ionic/cli-utils/node_modules/tslib/tslib.js:107:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/root/insight/app/node_modules/@ionic/cli-utils/node_modules/tslib/tslib.js:103:16)
    at Object.importAppScripts (/root/insight/app/node_modules/@ionic/cli-utils/lib/ionic-angular/app-scripts.js:7:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! insight-app@ start: `ionic serve`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the insight-app@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
liuhuanhui commented 5 years ago

mee to