-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
해결됨
저는 왜이렇게 되는건가요?...
20.02.04 00:03 작성 조회수 644
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...
답변을 작성해보세요.
1
김성국 김
2022.03.04
위에 따른 글도있는데 저도 같은문제로 끙끙거리다가 네트워크 한번 다시 끊엇다가 연결하고 해당프로젝트내의 node_modules한번 다 삭제한담에 다시 npm i 하고 npm run dev하니까 되네요 동일한네트워크로 안되면 다른네트워크(테더링)등으로 연결해서 설치해보세요
1
0
0
0
답변 5