oxl9235 2018-03-06 09:21 采纳率: 100%
浏览 3626
已采纳

哪位前端大神帮忙看看:WebStorm开发AngularJS创建不了项目

F:\NODE\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng new untitled --dir=.
Error: Schematic input does not validate against the Schema: {"directory":".","name":"untitled","skipGit":false,"style":"css","version":"1.7.2","commit":{"message":"chore: initial commit from @angular/cli\n\n _ _ ____ _ \n / \ _ _ __ _ _ | | _ _ _ __ / ___| | |_ |\n / △ \ | ' \ / _\| | | | |/ _\\ | '| | | | | | |\n / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |\n/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|\n |___/\n","name":"Angular CLI","email":"angular-cli@angular.io"},"path":"app","sourceDir":"src","inlineStyle":false,"inlineTemplate":false,"routing":false,"prefix":"app","skipTests":false,"skipInstall":false,"linkCli":false,"minimal":false,"serviceWorker":false}
Errors:
.directory should match format "path"
Schematic input does not validate against the Schema: {"directory":".","name":"untitled","skipGit":false,"style":"css","version":"1.7.2","commit":{"message":"chore: initial commit from @angular/cli\n\n _ _ ____ _ \n / \ _ _ __ _ _ | | _ _ _ __ / ___| | |_ |\n / △ \ | ' \ / _\| | | | |/ _\\ | '| | | | | | |\n / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |\n/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|\n |___/\n","name":"Angular CLI","email":"angular-cli@angular.io"},"path":"app","sourceDir":"src","inlineStyle":false,"inlineTemplate":false,"routing":false,"prefix":"app","skipTests":false,"skipInstall":false,"linkCli":false,"minimal":false,"serviceWorker":false}
Errors:
.directory should match format "path"
Done![图片说明](https://img-ask.csdn.net/upload/201803/06/1520327860_876753.png)图片说明

  • 写回答

3条回答 默认 最新

  • 周慧雨 2018-03-06 14:37
    关注

    应该是路径的问题 你试试这样给相对路径 应该可以的 类似这样:

    $ mkdir test
    $ ng new appName --directory "test"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵