创建Angular App命令行会引发错误

问题描述 投票:0回答:2

这是我的第一个Angular应用程序(希望以简单的方式开始,但我什至无法启动)。>>

问题是当我执行ng new [my_app_name]时,有几个错误和警告:

- Installing packages...npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecatednpm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecatednpm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.npm ERR! Unexpected end of JSON input while parsing near '...ll":"https://registry' npm ERR! A complete log of this run can be found in:npm ERR! <user_root>\AppData\Roaming\npm-cache\_logs\2020-05-20T09_36_33_420Z-debug.log × Package install failed, see above. The Schematic workflow failed. See above.

版本:|节点:12.16.2 |Angular CLI:9.1.6 |离子:5.4.16 |Git:2.26.1 |

它仍然创建了我的应用文件夹,但是没有node_modules文件夹,有什么想法吗?

这是我的第一个Angular应用程序(希望以简单的方式开始,但我什至无法启动)。问题是,当我执行ng new [my_app_name]时,会出现一些错误和警告:-正在安装...

angular command
2个回答
0
投票

尝试执行此步骤


0
投票

打开命令提示符并输入以下内容:

© www.soinside.com 2019 - 2024. All rights reserved.