创建新的Angular项目失败:ENOENT:没有这样的文件或目录

时间:2019-12-17 22:58:00

标签: node.js angular powershell angular-cli

我是Java语言的新手,我想创建一个新的Angular项目,如VS Code tutorialthis所示,它们对我没有帮助。我完全按照VS Code教程中的说明进行操作,甚至卸载/重新安装了nodejs和angular。我究竟做错了什么?我可以认为这不起作用的唯一原因是存在一些我找不到的兼容性问题。 Mypowershell输出:

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.20
Node: 12.13.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.803.20
@angular-devkit/core         8.3.20
@angular-devkit/schematics   8.3.20
@schematics/angular          8.3.20
@schematics/update           0.803.20
rxjs                         6.4.0

PS C:\Users\Path> ng new my-app
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
ENOENT: no such file or directory, mkdir 'C:\Users\Path>my-app'

谢谢。

1 个答案:

答案 0 :(得分:0)

所以需要快速修复才能创建应用程序:

PS C:\Users\username\

不知道为什么这样。