How do I install @angular/cli on debian 10
I've installed Nodejs so far using the following:
but now I need to install the angular client.
Ive tried the following line:
npm install -g @angular/cli
but I get the result of:
/root/.nvm/versions/node/v12.16.2/bin/ng -> /root/.nvm/versions/node/v12.16.2/lib/node_modules/@angular/cli/bin/ng
@firstname.lastname@example.org postinstall /root/.nvm/versions/node/v12.16.2/lib/node_modules/@angular/cli
sh: 1: node: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @email@example.com postinstall:
npm ERR! spawn ENOENT
npm ERR! Failed at the @firstname.lastname@example.org postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-07-23T08_05_27_223Z-debug.log
can't seem to figure out whats wrong.
Hey there -
I haven't come across this error myself, but I have done some research on it for you on how to fix this. The first thing that I recommend is checking out the log that the output you pasted above refers you to:
You might be able to find additional information in that log.
There are another couple of options in the Stack Overflow article I found, which I am pasting below:
Keep in mind that the program they're using in the article is not Angular, but the same principles may apply.
I hope this gets you pointed in the right direction. I'm also adding some tags to this post so that other members of the Linode Community who may have run into this themselves will be able to see it and offer their input if they can.