• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

npm start 에러

23.10.05 14:45 작성 조회수 221

0

npm ERR! code 1

npm ERR! path C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build --library=static_library

npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v115-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v115-win32-x64-unknown --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)

npm ERR! node-pre-gyp info it worked if it ends with ok

npm ERR! node-pre-gyp info using node-pre-gyp@0.12.0

npm ERR! node-pre-gyp info using node@20.4.0 | win32 | x64

npm ERR! node-pre-gyp WARN Using needle for node-pre-gyp https download

npm ERR! node-pre-gyp info check checked for "C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v115-win32-x64-unknown\grpc_node.node" (not found)

npm ERR! node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v115-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v115-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v115-win32-x64-unknown.tar.gz

npm ERR! node-pre-gyp WARN Pre-built binaries not found for grpc@1.19.0 and node@20.4.0 (node-v115 ABI, unknown) (falling back to source compile with node-gyp)

npm ERR! node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v115-win32-x64-unknown.tar.gz

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.4.0

npm ERR! gyp info using node@20.4.0 | win32 | x64

npm ERR! gyp info ok

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.4.0

npm ERR! gyp info using node@20.4.0 | win32 | x64

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration

npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

npm ERR! gyp ERR! find Python checking if "python3" can be used

npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if "python" can be used

npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Users\gjaischool\AppData\Local\Programs\Python\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Users\gjaischool\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe

npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run

npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3

npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python You need to install the latest version of Python.

npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,

npm ERR! gyp ERR! find Python you can try one of the following options:

npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)

npm ERR! gyp ERR! find Python - Set the environment variable PYTHON

npm ERR! gyp ERR! find Python - Set the npm configuration variable python:

npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"

npm ERR! gyp ERR! find Python For more information consult the documentation at:

npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation

npm ERR! gyp ERR! find Python **********************************************************

npm ERR! gyp ERR! find Python

npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack Error: Could not find any Python installation to use

npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:330:47)

npm ERR! gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:159:21)

npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:228:18)

npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:294:16)

npm ERR! gyp ERR! stack at exithandler (node:child_process:427:5)

npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:439:5)

npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:512:28)

npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12)

npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:483:16)

npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

npm ERR! gyp ERR! System Windows_NT 10.0.22621

npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\gjaischool\\Desktop\\x_test\\chatbot-app-master\\node_modules\\grpc\\src\\node\\extension_binary\\node-v115-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\gjaischool\\Desktop\\x_test\\chatbot-app-master\\node_modules\\grpc\\src\\node\\extension_binary\\node-v115-win32-x64-unknown" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"

npm ERR! gyp ERR! cwd C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc

npm ERR! gyp ERR! node -v v20.4.0

npm ERR! gyp ERR! node-gyp -v v9.4.0

npm ERR! gyp ERR! not ok

npm ERR! node-pre-gyp ERR! build error

npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v115-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\src\node\extension_binary\node-v115-win32-x64-unknown --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)

npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)

npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:512:28)

npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)

npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)

npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22621

npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\gjaischool\\Desktop\\x_test\\chatbot-app-master\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"

npm ERR! node-pre-gyp ERR! cwd C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc

npm ERR! node-pre-gyp ERR! node -v v20.4.0

npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.12.0

npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\gjaischool\AppData\Local\npm-cache\_logs\2023-10-05T05_36_46_355Z-debug-0.log

 

이런식으로 오류가 계속납니다 .. 버전을 다운해서 받아도 나고 업그레이드 해도 나고 제발 알려주세요 ㅠㅠ

답변 1

답변을 작성해보세요.

0

인프런 AI 인턴님의 프로필

인프런 AI 인턴

2023.10.07

안녕하세요, 인프런 AI 인턴이에요.
에러 메시지를 보니 npm start 명령어를 실행하면 grpc 모듈이 설치되지 않는 문제가 발생한 것 같습니다. grpc 모듈은 node-gyp를 사용하여 빌드되어야 하는데, 빌드가 실패하여 에러가 발생한 것 같습니다.

해결 방법으로는 다음과 같은 절차를 따를 수 있습니다.

  1. 먼저, grpc 모듈이 설치되어 있는지 확인해보세요. 만약 설치되어 있지 않다면 설치해야 합니다.

    • C:\Users\gjaischool\Desktop\x_test\chatbot-app-master\node_modules\grpc 경로에 grpc_node.node 파일이 있는지 확인해보세요. 파일이 없다면 grpc 모듈이 설치되지 않았을 가능성이 있습니다.
    • 만약 grpc 모듈이 설치되어 있지 않다면 npm install grpc 명령어를 실행하여 grpc 모듈을 설치해보세요.
  2. 만약 grpc 모듈이 설치되어 있는데도 에러가 발생한다면, grpc 모듈의 설치에 실패한 것일 수 있습니다. 이 경우에는 grpc 모듈을 재설치해보세요.

    • 먼저, npm cache clean 명령어를 사용하여 npm 캐시를 비워보세요.
    • 그 다음, npm install –global –production windows-build-tools 명령어를 실행하여 필요한 빌드 도구를 설치해보세요.
    • 마지막으로, npm install grpc 명령어를 실행하여 grpc 모듈을 다시 설치해보세요.

위의 방법들을 시도해보시고, 문제가 해결되지 않는다면 관련된 네이티브 빌드 환경이 제대로 설정되지 않았을 수도 있습니다. 이 경우에는 해당 환경을 재설정해야할 수도 있습니다. 문제가 지속된다면 해당 에러를 구글링하여 관련된 해결 방법을 찾아보시는 것을 추천드립니다.

문제가 해결되지 않거나 다른 질문이 있다면, npm start 에러 메시지와 함께 더 자세한 정보를 제공해주시면 도움을 더 드릴 수 있을 것 같아요.