Build error in ubuntu

hi im getting error, im not able to build, please help…

root@ip-:/#
root@ip-:/# git clone https://github.com/botpress/botpress.git
Cloning into ‘botpress’…
remote: Enumerating objects: 355, done.
remote: Counting objects: 100% (355/355), done.
remote: Compressing objects: 100% (238/238), done.
remote: Total 106421 (delta 170), reused 226 (delta 104), pack-reused 106066
Receiving objects: 100% (106421/106421), 182.65 MiB | 25.53 MiB/s, done.
Resolving deltas: 100% (71415/71415), done.
root@ip-:/#
root@ip-:/#
root@ip-:/# cd botpress/
root@ip-:/botpress#
root@ip-:/botpress# yarn
yarn install v1.17.3
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info fsevents@1.2.7: The platform “linux” is incompatible with this module.
info “fsevents@1.2.7” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
warning " > bluebird-global@1.0.1" has unmet peer dependency “bluebird@*”.
warning " > babel-jest@23.6.0" has unmet peer dependency “babel-core@^6.0.0 || ^7.0.0-0”.
warning “jest > jest-cli > @jest/core > jest-resolve-dependencies@24.5.0” has unmet peer dependency “jest-resolve@^24.1.0”.
warning “jest > jest-cli > jest-config > jest-resolve@24.5.0” has unmet peer dependency “jest-haste-map@^24.0.0”.
[5/5] Building fresh packages…
[-/5] ⠂ waiting…
[-/5] ⠂ waiting…
[-/5] ⠂ waiting…
[4/5] ⠂ puppeteer
warning Error running install script for optional dependency: "/botpress/node_modules/sqlite3: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /botpress/node_modules/sqlite3
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.11.0
node-pre-gyp info using node@12.10.0 | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for “/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node” (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v72-linux-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v72-linux-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v72-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.6 and node@12.10.0 (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.6/node-v72-linux-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@12.10.0 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@12.10.0 | linux | x64
gyp info find Python using Python version 2.7.15 found at “/usr/bin/python”
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘make’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/botpress/node_modules/sqlite3/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/root/.cache/node-gyp/12.10.0/include/node/common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=/root/.cache/node-gyp/12.10.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/root/.cache/node-gyp/12.10.0/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/botpress/node_modules/sqlite3’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘build’,
gyp info spawn args ‘-Goutput_dir=.’
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@12.10.0 | linux | x64
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:169:21)
gyp ERR! System Linux 4.15.0-1044-aws
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node” “–module_name=node_sqlite3” “–module_path=/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64” “–napi_version=4” “–node_abi_napi=napi” “–napi_build_version=0” “–node_napi_label=node-v72”
gyp ERR! cwd /botpress/node_modules/sqlite3
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/botpress/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:209:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 4.15.0-1044-aws
node-pre-gyp ERR! command “/usr/bin/node” “/botpress/node_modules/sqlite3/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /botpress/node_modules/sqlite3
node-pre-gyp ERR! node -v v12.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/botpress/node_modules/sqlite3/lib/binding/node-v72-linux-x64/node_sqlite3.node --module_name=node_sqlite3 -Done in 14.10s.
root@ip-:/botpress#

version of node
botpress# node -v

v12.10.0

Hey @Srinivasan_sadasivam !

Try using node 10.11 instead of 12.10.
I tried running yarn on a fresh Ubuntu VM. It failed with Node 12.10, and succeeded with 10.11.

You can use nvm to help you manage Node versions on your computer. Once you have installed nvm, run nvm install 10.11 && nvm use 10.11, then yarn. The build should now succeed.

Let me know if you encounter other errors.

1 Like

Thanks a lot, it worked with 10.x but not with 12.x as you mentioned. I had 12.x node version

Regards

Srini