Updated Node.js version to 22 and modified npm installation process to handle missing npm in Node 22.x.