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

김용국님의 프로필 이미지
김용국

작성한 질문수

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

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

npm run start 시 Error 발생

작성

·

269

0

안녕하세요

npm run start 하면 에러가 나와 강의 진행이 어렵습니다

도움 요청 드립니다

error 내용:

D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js:57

    throw e;

    ^

Error: Cannot find module 'D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v88-win32-x64-unknown\grpc_node.node'

Require stack:

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\client_interceptors.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\client.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\google-gax\build\src\grpc.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\google-gax\build\src\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\v2\agents_client.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\v2\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\index.js

- D:\source\React\ChatBot\chatbot-app-master\server\routes\dialogflow.js

- D:\source\React\ChatBot\chatbot-app-master\index.js

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

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

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

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

    at Object.<anonymous> (D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js:32:13)

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

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)

    at Module.load (node:internal/modules/cjs/loader:973:32)

    at Function.Module._load (node:internal/modules/cjs/loader:813:14)

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

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\grpc_extension.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\client_interceptors.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\client.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\google-gax\\build\\src\\grpc.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\google-gax\\build\\src\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\v2\\agents_client.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\v2\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\server\\routes\\dialogflow.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\index.js'

  ]

glory@DESKTOP-ABGMV71 MINGW64 /d/source/React/ChatBot/chatbot-app-master

$ npm run start

> chatbot-app@1.0.0 start

> node index.js

D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js:57

    throw e;

    ^

Error: Cannot find module 'D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v88-win32-x64-unknown\grpc_node.node'

Require stack:

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\client_interceptors.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\client.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\google-gax\build\src\grpc.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\google-gax\build\src\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\v2\agents_client.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\v2\index.js

- D:\source\React\ChatBot\chatbot-app-master\node_modules\dialogflow\src\index.js

- D:\source\React\ChatBot\chatbot-app-master\server\routes\dialogflow.js

- D:\source\React\ChatBot\chatbot-app-master\index.js

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

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

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

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

    at Object.<anonymous> (D:\source\React\ChatBot\chatbot-app-master\node_modules\grpc\src\grpc_extension.js:32:13)

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

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)

    at Module.load (node:internal/modules/cjs/loader:973:32)

    at Function.Module._load (node:internal/modules/cjs/loader:813:14)

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

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\grpc_extension.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\client_interceptors.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\src\\client.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\grpc\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\google-gax\\build\\src\\grpc.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\google-gax\\build\\src\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\v2\\agents_client.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\v2\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\node_modules\\dialogflow\\src\\index.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\server\\routes\\dialogflow.js',

    'D:\\source\\React\\ChatBot\\chatbot-app-master\\index.js'

  ]

}

npm ERR! code 1

npm ERR! path D:\source\React\ChatBot\chatbot-app-master

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\glory\AppData\Local\npm-cache\_logs\2020-12-21T15_17_49_225Z-debug.log

그리고 debug 파일을 열면 아래와 같이 나옵니다

0 verbose cli [
0 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'run',
0 verbose cli   'start'
0 verbose cli ]
1 info using npm@7.0.15
2 info using node@v15.4.0
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:D:\source\React\ChatBot\chatbot-app-master\.npmrc Completed in 1ms
9 timing config:load:project Completed in 3ms
10 timing config:load:file:C:\Users\glory\.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:C:\Users\glory\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 8ms
19 verbose npm-session 8109b44f8cf765a9
20 timing npm:load Completed in 17ms
21 timing command:run-script Completed in 333ms
22 verbose stack Error: command failed
22 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
22 verbose stack     at ChildProcess.emit (node:events:376:20)
22 verbose stack     at maybeClose (node:internal/child_process:1063:16)
22 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
23 verbose pkgid chatbot-app@1.0.0
24 verbose cwd D:\source\React\ChatBot\chatbot-app-master
25 verbose Windows_NT 10.0.19041
26 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"
27 verbose node v15.4.0
28 verbose npm  v7.0.15
29 error code 1
30 error path D:\source\React\ChatBot\chatbot-app-master
31 error command failed
32 error command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js
33 verbose exit 1

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
김용국님의 프로필 이미지
김용국

작성한 질문수

질문하기