简体   繁体   English

没有IDE的Angular JS环境配置

[英]Angular JS environment configuration without IDE

I am totally new to Angular JS, And I have been given an application developed in Angular JS, I am supposed to run that application on server without any IDE.我是 Angular JS 的新手,我得到了一个用 Angular JS 开发的应用程序,我应该在没有任何 IDE 的情况下在服务器上运行该应用程序。

How can I do that?我怎样才能做到这一点? I tried to research online but most of the tutorials are recommending using IDE.我尝试在线研究,但大多数教程都推荐使用 IDE。

I tried to run it from console using following command我尝试使用以下命令从控制台运行它

 ng serve --open

but getting following error但出现以下错误

'ng' is not recognized as an internal or external command,operable program or batch file. 'ng' 不是内部或外部命令,也不是可运行的程序或批处理文件。

Do I need to install any library?我需要安装任何库吗? how to do that?怎么做?

Note: I don't know if it is relevant but back-end of this application is written in Java (I am the developer).注意:我不知道它是否相关,但此应用程序的后端是用 Java 编写的(我是开发人员)。

Since you are new to Angular, follow the steps.由于您是 Angular 的新手,请按照以下步骤操作。

  • Assuming that you have NodeJS installed, go to the command prompt and type假设您已安装 NodeJS,请转到命令提示符并键入

    npm install -g @angular/cli

  • Go to your angular project (if you have downloaded) in command prompt and type npm install在命令提示符中转到您的 angular 项目(如果您已下载)并键入npm install
  • Finally type the following command ng server最后输入以下命令ng server

Also see below the links for the difference between AngularJS and Angular https://www.simplilearn.com/angularjs-vs-angular-2-vs-angular-4-differences-article https://gorrion.io/blog/angularjs-vs-angular另请参阅下面的链接,了解 AngularJS 和 Angular 之间的区别https://www.simplilearn.com/angularjs-vs-angular-2-vs-angular-4-differences-article https://gorrion.io/blog/angularjs -vs-角度

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

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