npm not found. Needed to enable application install

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Poui
Posts: 11
Joined: Fri Mar 24, 2017 3:58 pm

npm not found. Needed to enable application install

Post by Poui »

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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: npm not found. Needed to enable application install

Post by Fourdee »

Hi,

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

Code: Select all

 dietpi-software install 9
npm command will then function.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply