• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    해결됨

저는 왜이렇게 되는건가요?...

20.02.04 00:03 작성 조회수 601

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...

답변 5

·

답변을 작성해보세요.

1

김성국 김님의 프로필

김성국 김

2022.03.04

위에 따른 글도있는데 저도 같은문제로 끙끙거리다가 네트워크 한번 다시 끊엇다가 연결하고 해당프로젝트내의 node_modules한번 다 삭제한담에 다시 npm i 하고 npm run dev하니까 되네요  동일한네트워크로 안되면 다른네트워크(테더링)등으로 연결해서 설치해보세요

1

zmfl3668님의 프로필

zmfl3668

질문자

2020.02.04

해결하였습니다.~

0

클래식님의 프로필

클래식

2022.01.02

혹시 어떻게 해결하셨나요?ㅠㅠ

 

0

버튼님의 프로필

버튼

2021.02.11

혹시 어덯게 해결하셧나요? ㅜ

0

안녕하세요, 노드 버전이 안맞았던 것 같은데.. 잘 해결하셨다니 다행입니다 :)