I have tried different option to install node latest version in ubuntu 16, it was always taking node 4,
I have followed link
and now node -v gives me 8.X than I have installed npm after that I am trying to install angular, its breaking error is in screen shot attachment I know it required npm 5.5.1 but how do I install that, I have used command
npm install -g npm@latest
when I run command ng new myapp1 it gives error
This command can not be run inside of a CLI project.
it didn't work finally, what can I do next
Use These command for Install Angular Cli & Create Angular Project
npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve
And if you want to install latest Node check this
Note Use Sudo before NPM commands if you not have directory permissions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.