小编Sip*_* He的帖子

我该如何解决使用 ng new 时出现的错误?

我已经使用命令 npm install -g @angular/cli 安装了 angular-cli。当我尝试运行命令 ng new 并创建新项目时,出现错误:

\n
\xe2\xa0\x99 Installing packages (npm)...npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated\nnpm ERR! code E404\nnpm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found\nnpm ERR! 404 \nnpm ERR! 404  '@types/eslint@https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.\nnpm ERR! 404 You should bug the author to publish it (or use the name yourself!)\nnpm ERR! 404 \nnpm ERR! 404 Note that you can also install from a\nnpm ERR! 404 tarball, folder, http url, or git …
Run Code Online (Sandbox Code Playgroud)

npm angular-cli

33
推荐指数
1
解决办法
4678
查看次数

标签 统计

angular-cli ×1

npm ×1