Continue looping over submodules with the "git submodule foreach" command after a non-zero exit

I have a project that contains many submodules. I want to loop over each submodule with the following command: git submodule foreach npm install And I want the script to continue looping over each