跳到内容
首页关于联系

Angular Cannot Create New Project

作者 Shady Nagy
发布于 Angular
2021年7月20日
1 分钟阅读
Angular Cannot Create New Project
此内容暂无中文版本,正在显示原始版本。

Angular Introduction

Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your applications.

  • If you have this error when run ng new <project name> on VS Code terminal.
ng : File C:\Users\Shady\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng new apex-test
+ ~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
  • You need to run this command on powershell to fix that error.
$ Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser

That is all, now you can create new project from VS Code without any problem.


标签

angulartypescriptvscodemicrosoft

分享


Shady Nagy

Shady Nagy

Software Innovation Architect

主题

AI
Angular
.NET
GatsbyJS
GitHub
Linux
MS SQL
Oracle

快速链接

关于联系我们

社交媒体