janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.48k stars 1.11k forks source link

[master] Relative paths fail with global install #487

Closed gus4rs closed 1 year ago

gus4rs commented 1 year ago

Between 3.3.0 and master, the file app.js is trying to reach a file using relative path:

https://github.com/janoside/btc-rpc-explorer/blob/4a0ce70e3a982213e175d93d8dbd35be3c571c7d/app.js#L1151-L1153

This breaks global installs of the package (npm install -g btc-rpc-explorer), since this path will not be reachable unless running the btc-rpc-explorer cmd from the btc-rpc-explorer/node_modules/ folder