Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Angular CLI currently requires npm version 6

Tags:

angular-cli

I am using angular ng new command to create a application.

ng new angular-hello-world.

got below error. npm version 7.5.1 detected. The Angular CLI currently requires npm version 6.

Please install a compatible version to proceed (npm install --global npm@6).

any idea what it is ? why need to install npm@6

like image 967
user2845478 Avatar asked Feb 07 '21 23:02

user2845478


Video Answer


2 Answers

try this instead

npm install --global npm@6
like image 164
sakeel jawfer Avatar answered Sep 20 '22 19:09

sakeel jawfer


Yo can solve this problem using the latest Node.js version compatible with npm 6: Node.js 14.15.Z

Use nvm (Mac or Linux) or nvm windows (Windows only) to manage multiple Node.js versions in your computer.

like image 28
Rafael Neto Avatar answered Sep 19 '22 19:09

Rafael Neto