The Angular CLI currently requires npm version 6

好久不见. 提交于 2021-02-11 06:51:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!