해결된 질문
작성
·
798
2
> rimraf dist && npm run build && npm run start
> server@1.0.0 build /Users/xoxo30/workspace/vue-til-server
> babel src --out-dir dist --source-maps inline --copy-files
Successfully compiled 9 files with Babel.
> server@1.0.0 start /Users/xoxo30/workspace/vue-til-server
> node dist/app.js
internal/modules/cjs/loader.js:807
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The module '/Users/xoxo30/workspace/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 64. 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:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/xoxo30/workspace/vue-til-server/node_modules/bcrypt/bcrypt.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/xoxo30/workspace/vue-til-server/dist/api/auth.js:8:38)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 start: `node dist/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
rnpm ERR! A complete log of this run can be found in:
npm ERR! /Users/xoxo30/.npm/_logs/2020-02-03T14_58_52_848Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! server@1.0.0 restart: `rimraf dist && npm run build && npm run start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the server@1.0.0 restart 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! /Users/xoxo30/.npm/_logs/2020-02-03T14_58_52_872Z-debug.log
[nodemon] app crashed - waiting for file changes before starting...