oxl9235 2018-03-06 01: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 06:37
    关注

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

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

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部