A different python executable can be specified on the It is mentioned in the documentation of sqlite3 on npm, you can read the following:īy default the node-gyp install will use python as part of the Is it expected to be needing python to install sqlite3 via npm package by building the sources ? YES I noticed this install: /bin/sh: 1: python: not found While looking into the logs, to find hints on which part failed. Install / Re-install Python and make sure it is in your $Path sudo apt-get install python3 The problem is only in the virtual machine and I don't know where to find a solution to this problem. ![]() home/user/slave/workspace/app/common/temp/pnpm-local/node_modules/.bin/pnpm install -store /home/user/slave/workspace/app/common/temp/pnpm-store -no-prefer-frozen-lockfileĮRROR: Error: The command failed with exit code 1ĮRROR: The command failed with exit code 1 node_modules/tiny-secp256k1 install: make: Entering directory install: CXX(target) install: gyp info spawn install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args install: gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.17.6/ install: node-pre-gyp ERR! stack at ChildProcess.emit install: node-pre-gyp ERR! stack at maybeClose install: node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit install: node-pre-gyp ERR! System Linux install: node-pre-gyp ERR! command "/usr/bin/node" "install" install: node-pre-gyp ERR! cwd install: node-pre-gyp ERR! node -v install: node-pre-gyp ERR! node-pre-gyp -v install: node-pre-gyp ERR! not install: Failed to execute '/usr/bin/node /root/.rush/node-v14.17.6/pnpm-5.18.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js build -fallback-to-build -module_name=node_sqlite3 -napi_version=8 -node_abi_napi=napi -napi_build_version=0 -node_napi_label=node-v83' install: Failed Traceback: les/sqlite3 install: gyp info it worked if it ends with install: gyp info using install: gyp info using | linux | install: gyp info install: gyp info it worked if it ends with install: gyp info using install: gyp info using | linux | install: gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" (npm upgrade, clean chache, npm install -g node-gyp) However, I'm using Ubuntu (20.04 lts) so I tried to build nodejs build tools sudo apt-get install -y build-essential and then npm rebuild and npm rebuild node-gypĪnd few more. ![]() If you are using windows, to solve this issue, you could try to run: npm install -global -production windows-build-tools and then: npm rebuild node-gyp -> npm install sqlite3. I cannot change the node version because then other problems will arise. I think it happens when I changed my node version, while not rebuilding npm package. ![]() The problem occurs on the virtual machine when starting CI/CD ( rush update or yarn command).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |