I am a bit confused about the Angular-CLI and its requirements.
I have an existing and running angular project on my system. It is running nicely. I can start the builtin server too with
ng serve
Now I tried to create a new project. Create a directory and do this inside.
ng new MYTEST
But the output gives my an error.
installing ng
create .editorconfig
...
create tsconfig.json
create tslint.json
Installing packages for tooling via npm.
/bin/sh: 1: npm: not found
Package install failed, see above.
/usr/local/lib/node_modules/@angular/cli/tasks/npm-install.js:25
throw new Error(message);
^
Files and directories were created but then npm is not found. But is is installed and latest (Debian 10, npm is a virtual package for nodejs 6.14.3-1nodesource1).
I find
/usr/local/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js
How can I get rid of that problem? Thanks!
EDIT
> node -v
v8.0.0
> npm -v
bash: npm: command not found
npm --version/bin/shdoesn't findnpmcommand. To manage npm different version I'm using github.com/creationix/nvm on Ubuntu and macOS. There are many reasons why your npm install could be broken so...you should just reinstall it properly.