# EPGStation壊れた ## 原因 軽率に`pm2 update`した ## 症状  ![](https://i.imgur.com/RoOZB18.png) ![](https://i.imgur.com/dlC1Va1.png) ![](https://i.imgur.com/z3spEYA.png) ![](https://i.imgur.com/2k1UJ7a.png) ``` neso@h110:~/EPGStation/EPGStation$ pm2 start dist/server/index.js --name epg [PM2] Starting /home/neso/EPGStation/EPGStation/dist/server/index.js in fork_mode (1 instance) [PM2] Done. ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ epg │ fork │ 0 │ online │ 0% │ 27.9mb │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ neso@h110:~/EPGStation/EPGStation$ pm2 save [PM2] Saving current process list... [PM2] Successfully saved in /home/neso/.pm2/dump.pm2 neso@h110:~/EPGStation/EPGStation$ npm start > EPGStation@1.7.6 start /home/neso/EPGStation/EPGStation > node dist/server/index.js internal/modules/cjs/loader.js:1065 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: The module '/home/neso/EPGStation/EPGStation/node_modules/diskusage/build/Release/diskusage.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1065:18) at Module.load (internal/modules/cjs/loader.js:879:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Module.require (internal/modules/cjs/loader.js:903:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/home/neso/EPGStation/EPGStation/node_modules/diskusage/index.js:1:14) at Module._compile (internal/modules/cjs/loader.js:1015:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10) at Module.load (internal/modules/cjs/loader.js:879:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! EPGStation@1.7.6 start: `node dist/server/index.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the EPGStation@1.7.6 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/neso/.npm/_logs/2020-11-10T12_09_20_829Z-debug.log ``` ## 対処 ``` cd /home/neso/EPGStation/EPGStation npm rebuild pm2 start epgstation ``` で治る