반응형
Error
Windows PC에서 NodeJS로 작성된 web application 소스코드를 내려받아
npm install를 실행하여 모듈을 설치하려고 할 때, 아래와 같은 에러가 발생함
npm ERR! code 1
npm ERR! path C:\Users\user\Desktop\me\workspace\node-study\node_modules\sqlite3
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
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 --module=C:\Users\user\Desktop\me\workspace\node-study\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\user\Desktop\me\workspace\node-study\node_modules\sqlite3\lib\binding\node-v93-win32-x64' (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.6.38
npm ERR! node-pre-gyp info using node@16.16.0 | win32 | x64
npm ERR! node-pre-gyp info check checked for "C:\Users\user\Desktop\me\workspace\node-study\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@16.16.0 (node-v93 ABI) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@16.16.0 (node-v93 ABI) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http Connection closed while downloading tarball file
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.16.0 | win32 | x64
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.16.0 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.16.0 | win32 | x64
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.16.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 gypERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! ERR!find Python checking if "python3" can be used
npm ERR! gyp find PythonERR! find Python - "python3" is not in PATH or produced an error
... (중략) ...
반응형
Solution
윈도우 피씨에 파이썬이 설치되지 않아서 나는에러!
https://www.python.org/downloads/windows/
위사이트에서 파이썬 설치 후 다시 해보면 됨.
Thank you!
반응형
'Language > Node.js' 카테고리의 다른 글
[Node.js] Sequelize X Mocha를 이용하여 TEST 시, 테이블 does not exist 문제해결 (0) | 2022.08.21 |
---|---|
[NodeJS Error] Windows에서 npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build 해결방법 (0) | 2022.07.17 |
[TDD기반 Node.js 공부하기] 05. macha, should, superTest 사용하기 (0) | 2022.07.14 |
[TDD기반 Node.js 공부하기] 04. npm이란? (0) | 2022.06.21 |
[TDD기반 Node.js 공부하기] 03. ExpressJS 기초 (0) | 2022.06.13 |