I just used the command """nvm install 12""" and it worked for me,
I used the command npm start after that to start the npm service.