인프런 커뮤니티 질문&답변

김현성님의 프로필 이미지

작성한 질문수

따라하며 배우는 노드, 리액트 시리즈 - 챗봇 사이트 만들기

챗봇 어플리케이션 만들기#3 구조 설명 & textQuery Route 만들기

npm run start 시 cannot find module 에러

21.07.01 01:06 작성

·

396

1

강의 내용 중 npm run start하는 과정에서 자꾸 에러가 뜹니다 .. 

다음 영상으로의 진도를 못나가는 상황이라 질문 올려봅니다 ㅠㅠ

npm run start

> chatbot-app@1.0.0 start

> node index.js

C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\grpc_extension.js:57

    throw e;

    ^

Error: Cannot find module 'C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\node\extension_binary\node-v93-win32-x64-unknown\grpc_node.node'      

Require stack:

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\grpc_extension.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\client_interceptors.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\client.js       

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\index.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\google-gax\build\src\grpc.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\google-gax\build\src\index.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\dialogflow\src\v2\agents_client.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\dialogflow\src\v2\index.js

- C:\Users\ddffs\Desktop\chatbot-starter\node_modules\dialogflow\src\index.js  

- C:\Users\ddffs\Desktop\chatbot-starter\server\routes\dialogflow.js

- C:\Users\ddffs\Desktop\chatbot-starter\index.js

    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)

    at Function.Module._load (node:internal/modules/cjs/loader:772:27)

    at Module.require (node:internal/modules/cjs/loader:999:19)

    at require (node:internal/modules/cjs/helpers:93:18)

    at Object.<anonymous> (C:\Users\ddffs\Desktop\chatbot-starter\node_modules\grpc\src\grpc_extension.js:32:13)

    at Module._compile (node:internal/modules/cjs/loader:1095:14)

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1124:10)    at Module.load (node:internal/modules/cjs/loader:975:32)

    at Function.Module._load (node:internal/modules/cjs/loader:816:12)

    at Module.require (node:internal/modules/cjs/loader:999:19) {

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\grpc\\src\\grpc_extension.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\grpc\\src\\client_interceptors.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\grpc\\src\\client.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\grpc\\index.js',    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\google-gax\\build\\src\\grpc.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\google-gax\\build\\src\\index.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\dialogflow\\src\\v2\\agents_client.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\dialogflow\\src\\v2\\index.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\node_modules\\dialogflow\\src\\index.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\server\\routes\\dialogflow.js',

    'C:\\Users\\ddffs\\Desktop\\chatbot-starter\\index.js'

  ]

}

답변 1

0

권규리님의 프로필 이미지

2023. 11. 20. 17:28

혹시 해결하셨나요 ㅠㅠ