How to fetch all previous transaction by an Account in NodeJs

The node does not directly support such an API. You either need to write your own service that uses GetBlockSummary to record all those transactions, or use an existing service such as https://github.com/Concordium/concordium-transaction-logger to store all transactions indexed by account in a postgresql database.