You don't give enough information for anyone to help you.
Try adding the node-red version you are using, the node.js version you are using, how it is installed (docker? Virtual machine? What operating system?)
But most importantly the logs for the failed installation.
