npm not found. Needed to enable application install

How to resolve? npm not found error thrown.

root@DietPi:~# npm install zetta
bash: root@DietPi:~#: command not found

How can I do an cli app install using npm. npm exits:
root@DietPi:~# find / -name npm
/usr/local/lib/node_modules/npm
/root/.npm/registry.npmjs.org/npm
/root/.npm/npm

Will appreciate any informed suggestions or tips to solve this issue.

Hi,

You’ll first need to install nodeJS (npm):

 dietpi-software install 9

npm command will then function.