如何在 Vscode 中从 Github 运行 Angular 代码

Moh*_*mal 3 github visual-studio-code angular

任何人都可以帮助我在 Visual Studio 代码中运行我从 Github 下载的代码

小智 8

尝试一下

  1. 使用对应的下载文件夹打开VS代码
  2. 在 VS 代码中打开集成命令提示符/终端
  3. 运行npm install命令
  4. 运行ng serve命令


Sha*_*ani 5

Stackblitzangular's github project上不用下载就可以直接运行

只需用 stackblitz url 替换 github url :

替换https://github.com/https://stackblitz.com/github/

例子 :-

GitHub url : https://github.com/onecompileman/angular-stateside
replace with :  https://stackblitz.com/github/onecompileman/angular-stateside
Run Code Online (Sandbox Code Playgroud)

或者从你的电脑运行 github 下载的 angular 项目。

注意:您必须在您的计算机中安装 nodeJS 和 angular-cli。

进入您下载的文件夹。

并打开命令提示符。并写命令:npm install 完成后。写ng serve --open

并且您的项目会自动在浏览器中打开。