问题
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
回答1:
try this instead
npm install --global npm@6
回答2:
Yo can solve this problem using the latest Node.js version compatible with npm 6: Node.js 14.15.4
Use nvm (Mac or Linux) or nvm windows (Windows only) to manage multiple Node.js versions in your computer.
来源:https://stackoverflow.com/questions/66094034/the-angular-cli-currently-requires-npm-version-6