How to allow an npm script to run all tasks before terminating even if one task fails

I have an NPM script that runs multiple tasks like this:

"multiple": "task1 && task2 && task3"

However if tasks2 fails, the script will terminate and task3 will not be run.

Is there a way to “Catch” / “Ignore” the error if it does occur, so that task3 runs either way?

Something like:


“multiple”: “task1 && task2 > ignore && task3”