Skip to content

Error installing dependencies in Node 20.x #741

@javierlopezdeancos

Description

@javierlopezdeancos

Expected Behaviour
Complete a npm install with success to Node LTS 20.x version

Actual Behaviour

testcontainers-node git:(main) node --version
v20.12.0
\u279c  testcontainers-node git:(main) npm i
npm WARN deprecated [email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @types/[email protected]: This is a stub types definition. redis provides its own type definitions, so you do not need this installed.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This proposal has been altered; please use https://npmjs.com/object.groupby instead!
npm ERR! code 1
npm ERR! path /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/couchbase
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! prebuild-install warn install No prebuilt binaries found (target=20.12.0 runtime=node arch=arm64 libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | arm64
npm ERR! gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/couchbase/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/javierlopezdeancos/.cache/node-gyp/20.12.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/javierlopezdeancos/.cache/node-gyp/20.12.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/javierlopezdeancos/.cache/node-gyp/20.12.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/couchbase',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack     at getNotFoundError (/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack     at /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at step (/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack     at /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at subStep (/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack     at /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack     at /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack     at /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 5.15.0-101-generic
npm ERR! gyp ERR! command "/home/javierlopezdeancos/.nvm/versions/node/v20.12.0/bin/node" "/home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/javierlopezdeancos/Code/testcontainers/testcontainers-node/node_modules/couchbase
npm ERR! gyp ERR! node -v v20.12.0
npm ERR! gyp ERR! node-gyp -v v9.4.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/javierlopezdeancos/.npm/_logs/2024-04-01T08_33_53_220Z-debug-0.log

Testcontainer Logs
No apply

Steps to Reproduce

  1. Go to the project page
  2. Copy the url to clone it fresh
  3. Clone the repo into your local machine
  4. Select the last LTS Node 20.x version 20.12.0
  5. Execute npm install

Environment Information

  • Operating System: Ubuntu LTS 22.x but Is reproducible in MacOS too
  • Docker Version:
  • Node version: 20.12.0 LTS but is reproducible in any old LTS 20.x
  • Testcontainers version: latest

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions