SIP.js build error

176 views
Skip to first unread message

Ad Rehman

unread,
Jul 17, 2021, 7:07:12 AM7/17/21
to SIP.js


i am following the provided guide to build and run demo of SIP.js



but getting so many errors.. as following, please guide me

_________________________________________
[root@ovs3 SIP.js]# npm run build-and-test

> sip...@0.20.0 build-and-test /var/www/html/SIP.js
> npm run build && npm run command-line-test


> sip...@0.20.0 prebuild /var/www/html/SIP.js
> npm run lint


> sip...@0.20.0 lint /var/www/html/SIP.js
> eslint --ext .ts .

/var/www/html/SIP.js/node_modules/eslint/bin/eslint.js:93
        } catch {
                ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sip...@0.20.0 lint: `eslint --ext .ts .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sip...@0.20.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-07-17T10_53_25_710Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sip...@0.20.0 prebuild: `npm run lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sip...@0.20.0 prebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-07-17T10_53_25_724Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sip...@0.20.0 build-and-test: `npm run build && npm run command-line-test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sip...@0.20.0 build-and-test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-07-17T10_53_25_737Z-debug.log

Slavik Bialik

unread,
Jul 17, 2021, 1:12:40 PM7/17/21
to SIP.js
Try to run first: "npm run lint-fix"
And then try to re-run the "npm run build-and-test"
Maybe it'll help.

AD Rehman

unread,
Jul 18, 2021, 8:14:24 AM7/18/21
to sip...@googlegroups.com
this was node's version error...


--
You received this message because you are subscribed to the Google Groups "SIP.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sip_js+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sip_js/bed469a1-c43c-4d76-8399-a5f75bcb4c85n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages