Not able to install nodejs and npm correctly in endeavouros

I have installed enmdeavour os many times but this time I am not able to setup npm and node properly for my dev project. Please help

The command works fine on npm version 10.4.0-2.

Can you try to downgrade npm to version 10.4 and see if it works?