Ride-The-Lightning / RTL

Ride The Lightning - A full function web browser app for LND, C-Lightning and Eclair
MIT License
752 stars 158 forks source link

RTL server does not start - npm install generates several warnings #1163

Closed prassidicePM closed 1 year ago

prassidicePM commented 1 year ago

Describe the bug when running node rtl I got: file:///home/clnuser/Downloads/RTL-0.13.3/backend/utils/common.js:204 array?.unshift(newlyAddedRecord[0]); ----^

SyntaxError: Unexpected token '.'

the server is not running

To Reproduce Steps to reproduce the behavior:

  1. $ node rtl
  2. See error

Screenshots If applicable, add screenshots to help explain your problem.

Your environment

Additional context

c-lightning-REST server is working: $ node cl-rest.js Reading config file warn: --- Starting the cl-rest server --- warn: --- cl-rest api server is ready and listening on port: 3001 --- warn: --- cl-rest doc server is ready and listening on port: 4001 ---

RTL-Config.json: { "multiPass": "", "port": "3000", "defaultNodeIndex": 1, "SSO": { "rtlSSO": 0, "rtlCookiePath": "", "logoutRedirectLink": "" }, "nodes": [ { "index": 1, "lnNode": "Node 1", "lnImplementation": "CLN", "Authentication": { "macaroonPath": "", "configPath": "", }, "Settings": { "userPersona": "OPERATOR", "themeMode": "DAY", "themeColor": "PURPLE", "bitcoindConfigPath": "", "logLevel": "INFO", "fiatConversion": false, "unannouncedChannels": false, "lnServerUrl": "" } } ] }

$ node --version v12.22.12

$ npm --version 7.5.2

$ npm audit

npm audit report

d3-color <3.1.0 Severity: high d3-color vulnerable to ReDoS - https://github.com/advisories/GHSA-36jr-mh4h-2g58 fix available via npm audit fix --force Will install @swimlane/ngx-charts@6.1.0, which is a breaking change node_modules/d3-interpolate/node_modules/d3-color node_modules/d3-transition/node_modules/d3-color d3-interpolate 0.1.3 - 2.0.1 Depends on vulnerable versions of d3-color node_modules/d3-interpolate @swimlane/ngx-charts >=7.0.0 Depends on vulnerable versions of d3-interpolate Depends on vulnerable versions of d3-transition node_modules/@swimlane/ngx-charts d3-brush 0.1.0 - 2.1.0 Depends on vulnerable versions of d3-interpolate node_modules/d3-brush d3-scale 0.1.5 - 3.3.0 Depends on vulnerable versions of d3-interpolate node_modules/d3-scale d3-transition 0.0.7 - 2.0.0 Depends on vulnerable versions of d3-color Depends on vulnerable versions of d3-interpolate node_modules/d3-transition

6 high severity vulnerabilities

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

ShahanaFarooqui commented 1 year ago

Angular 15 needs NodeJS version '>=14.20.0 OR >=16.13.0 OR >=18.10.0'.

prassidicePM commented 1 year ago

I've installed node 18.12.1 and npm 8.19.2 $ node --version v18.12.1 $ npm --version 8.19.2

removed the line: "configPath": "/usr/local/bin/lightning" (cannot understand how to configure it and what should "config" contain)

then I untar'd again v0.13.3.tar.gz and run npm install --omit=dev --legacy-peer-deps

now the server is working

The public key of lightningd is not available I cannot fix the password, the pop up does not propose any secret code

screen

prassidicePM commented 1 year ago

fixed with rel. v0.13.4-beta