The Angular CLI currently requires npm version 6

Viewed 5974

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

2 Answers

try this instead

npm install --global npm@6

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.

Related