Basic-Recording icon indicating copy to clipboard operation
Basic-Recording copied to clipboard

Error installing on node 12.22.10

Open Vaibhav-Agarwal06 opened this issue 4 years ago • 6 comments

We are getting below error when we run sudo sh build.sh OS: ubuntu 18.04 node version: v12.22.10 npm version: 6.14.16

agorasdk.target.mk:119: recipe for target 'Release/obj.target/agorasdk/agora_node_ext/Agor aSdk.o' failed make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1 make: Leaving directory '/home/ubuntu/record/src/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194 :23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:1 2) gyp ERR! System Linux 4.15.0-1021-aws gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" gyp ERR! cwd /home/ubuntu/record/src gyp ERR! node -v v12.22.10 gyp ERR! node-gyp -v v8.4.1 gyp ERR! not ok cp: cannot stat 'build/Release/agorasdk.node': No such file or directory

Vaibhav-Agarwal06 avatar Feb 04 '22 13:02 Vaibhav-Agarwal06

We are getting below error when we run sudo sh build.sh OS: ubuntu 18.04 node version: v12.22.10 npm version: 6.14.16

agorasdk.target.mk:119: recipe for target 'Release/obj.target/agorasdk/agora_node_ext/Agor aSdk.o' failed make: *** [Release/obj.target/agorasdk/agora_node_ext/AgoraSdk.o] Error 1 make: Leaving directory '/home/ubuntu/record/src/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194 :23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:1 2) gyp ERR! System Linux 4.15.0-1021-aws gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" gyp ERR! cwd /home/ubuntu/record/src gyp ERR! node -v v12.22.10 gyp ERR! node-gyp -v v8.4.1 gyp ERR! not ok cp: cannot stat 'build/Release/agorasdk.node': No such file or directory

anurag-ahead avatar Feb 05 '22 04:02 anurag-ahead

hi try using this branch if you are using nodejs12 https://github.com/AgoraIO/Basic-Recording/tree/dev/nodejs12

plutoless avatar Feb 07 '22 01:02 plutoless

@plutoless : Thanks. It's working on node version 12.x on Ubuntu OS. Do you have plans to make it compatible to node version 14.x?

We are getting below error when we run "sudo sh build.sh" command on centos on 12.x: imgpsh_fullsize_anim

Vaibhav-Agarwal06 avatar Feb 07 '22 07:02 Vaibhav-Agarwal06

@Vaibhav-Agarwal06 i have supported node 14.x in dev/nodejs14 branch i don't have centOS in hand so if that's not necessary maybe go with ubuntu first.

plutoless avatar Feb 07 '22 10:02 plutoless

@plutoless : Thanks for prompt support.

Yes, issue has beed fixed for nodejs 14 on Ubuntu.

But some of our client want to setup on centos and don't want to use Ubuntu. Can you please also provide the fix for Centos OS as well.

Vaibhav-Agarwal06 avatar Feb 07 '22 12:02 Vaibhav-Agarwal06

@Vaibhav-Agarwal06 did you forget to switch branch on your centos system? i tried on centos and it works fine.

plutoless avatar Feb 08 '22 01:02 plutoless