简体   繁体   English

在 Angular 中创建新项目时显示错误

[英]Error showing while creating new project in Angular

在此处输入图片说明

Why this error showing while trying to serve(run) a new project in AngularJs ?为什么在尝试在 AngularJs 中服务(运行)一个新项目时会显示此错误? Node is installed.节点已安装。 Angular CLI is installed.安装了 Angular CLI。 A new project is created.创建了一个新项目。

I guess you are missing something here .我猜你在这里遗漏了一些东西。

If you are using cli you need to first install cli using npm install -g @angular/cli and then如果您使用的是 cli,则需要首先使用npm install -g @angular/cli ,然后

  • ng new PROJECT-NAME ng 新项目名称
  • cd PROJECT-NAME cd 项目名称
  • ng serve服务

If you are just forking a angular library please check if any package,json file is there in the root or any level if it is there navigate to that folder and then do a npm install如果您只是分叉一个角度库,请检查根目录或任何级别中是否存在任何包、json 文件(如果存在)导航到该文件夹​​,然后执行npm install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM