ANS :

If sudo: npm: command not found has existed, this mean you haven't install npm command.