MayamaTakeshi / sip-lab

A node module that helps to write SIP functional tests
3 stars 2 forks source link

Failed to install on Debian 11 for node 19 #54

Closed MayamaTakeshi closed 9 months ago

MayamaTakeshi commented 11 months ago
$ cat /etc/issue
Debian GNU/Linux 11 \n \l

$ node -v
v19.9.0

$ time npm i sip-lab
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /root/tmp/t1/node_modules/sip-lab
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! make: Entering directory '/root/tmp/t1/node_modules/sip-lab/build'
npm ERR!   TOUCH Release/obj.target/all-settings.stamp
npm ERR!   ACTION executing build_deps.sh 3rdParty
npm ERR! libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
... ABRIDGED ...
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/root/tmp/t1/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.10.0-15-amd64
npm ERR! gyp ERR! command "/root/.nvm/versions/node/v19.9.0/bin/node" "/root/tmp/t1/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /root/tmp/t1/node_modules/sip-lab
npm ERR! gyp ERR! node -v v19.9.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: /root/.npm/_logs/2023-12-16T22_21_31_717Z-debug-0.log

real    4m2.421s
user    2m50.041s
sys 0m31.163s
MayamaTakeshi commented 11 months ago

Obs: running "npm run build" on Ubuntu 22.04 when node 19 is activated works.

MayamaTakeshi commented 9 months ago

I tried again with the latest release and I could not reproduce this:

$ node -v
v19.9.0

$ npm i sip-lab
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs

added 119 packages, and audited 162 packages in 17s

10 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ cat package.json 
{
  "name": "t1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "sdp-matching": "^1.3.2",
    "sip-lab": "^1.17.5"
  }
}

$ cat /etc/issue
Debian GNU/Linux 11 \n \l

Maybe it was a temporary problem or issue with npm.