Angular: ng new error when I create an angular project












2















I have this error using ng new project_name:



An invalid configuration file was found ['angular.json']. Please delete the file before running the command.



I am getting this error I don't know how to get the solution.



I uninstalled @angular/cli and installed again



npm clean cache doesnt work too (I dont know if it is problem of my npm version



npm version is 6.4.1    
node version is 8.11.1


what do i need to solve the problem?










share|improve this question























  • The error means what it says. Are you certain that there's no angular.json in current or parent directory?

    – estus
    Nov 17 '18 at 17:58











  • after this command ng new project_name did you cd project_name before starting npm??

    – Abhishek Ekaanth
    Nov 17 '18 at 18:50
















2















I have this error using ng new project_name:



An invalid configuration file was found ['angular.json']. Please delete the file before running the command.



I am getting this error I don't know how to get the solution.



I uninstalled @angular/cli and installed again



npm clean cache doesnt work too (I dont know if it is problem of my npm version



npm version is 6.4.1    
node version is 8.11.1


what do i need to solve the problem?










share|improve this question























  • The error means what it says. Are you certain that there's no angular.json in current or parent directory?

    – estus
    Nov 17 '18 at 17:58











  • after this command ng new project_name did you cd project_name before starting npm??

    – Abhishek Ekaanth
    Nov 17 '18 at 18:50














2












2








2








I have this error using ng new project_name:



An invalid configuration file was found ['angular.json']. Please delete the file before running the command.



I am getting this error I don't know how to get the solution.



I uninstalled @angular/cli and installed again



npm clean cache doesnt work too (I dont know if it is problem of my npm version



npm version is 6.4.1    
node version is 8.11.1


what do i need to solve the problem?










share|improve this question














I have this error using ng new project_name:



An invalid configuration file was found ['angular.json']. Please delete the file before running the command.



I am getting this error I don't know how to get the solution.



I uninstalled @angular/cli and installed again



npm clean cache doesnt work too (I dont know if it is problem of my npm version



npm version is 6.4.1    
node version is 8.11.1


what do i need to solve the problem?







node.js angular angular-cli






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 17 '18 at 17:55









DavidDavid

2,09651733




2,09651733













  • The error means what it says. Are you certain that there's no angular.json in current or parent directory?

    – estus
    Nov 17 '18 at 17:58











  • after this command ng new project_name did you cd project_name before starting npm??

    – Abhishek Ekaanth
    Nov 17 '18 at 18:50



















  • The error means what it says. Are you certain that there's no angular.json in current or parent directory?

    – estus
    Nov 17 '18 at 17:58











  • after this command ng new project_name did you cd project_name before starting npm??

    – Abhishek Ekaanth
    Nov 17 '18 at 18:50

















The error means what it says. Are you certain that there's no angular.json in current or parent directory?

– estus
Nov 17 '18 at 17:58





The error means what it says. Are you certain that there's no angular.json in current or parent directory?

– estus
Nov 17 '18 at 17:58













after this command ng new project_name did you cd project_name before starting npm??

– Abhishek Ekaanth
Nov 17 '18 at 18:50





after this command ng new project_name did you cd project_name before starting npm??

– Abhishek Ekaanth
Nov 17 '18 at 18:50












2 Answers
2






active

oldest

votes


















2














The problem seems to be the _ in project_name resulting in the following error:



Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
Errors:

Data path ".name" should match format "html-selector".


Replace _ e.g. with -.



Further readings:




  • Error when creating new project with Angular-CLI 6.1.2

  • Style Guide






share|improve this answer
























  • ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

    – David
    Nov 18 '18 at 18:43











  • What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

    – pzaenger
    Nov 18 '18 at 18:57



















0














I deleted the file in c:usersXXX.angular.json and it was running ok.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53353955%2fangular-ng-new-error-when-i-create-an-angular-project%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    The problem seems to be the _ in project_name resulting in the following error:



    Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
    Errors:

    Data path ".name" should match format "html-selector".


    Replace _ e.g. with -.



    Further readings:




    • Error when creating new project with Angular-CLI 6.1.2

    • Style Guide






    share|improve this answer
























    • ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

      – David
      Nov 18 '18 at 18:43











    • What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

      – pzaenger
      Nov 18 '18 at 18:57
















    2














    The problem seems to be the _ in project_name resulting in the following error:



    Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
    Errors:

    Data path ".name" should match format "html-selector".


    Replace _ e.g. with -.



    Further readings:




    • Error when creating new project with Angular-CLI 6.1.2

    • Style Guide






    share|improve this answer
























    • ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

      – David
      Nov 18 '18 at 18:43











    • What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

      – pzaenger
      Nov 18 '18 at 18:57














    2












    2








    2







    The problem seems to be the _ in project_name resulting in the following error:



    Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
    Errors:

    Data path ".name" should match format "html-selector".


    Replace _ e.g. with -.



    Further readings:




    • Error when creating new project with Angular-CLI 6.1.2

    • Style Guide






    share|improve this answer













    The problem seems to be the _ in project_name resulting in the following error:



    Schematic input does not validate against the Schema: {"name":"project_name","version":"6.0.1","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit":false,"commit":null}
    Errors:

    Data path ".name" should match format "html-selector".


    Replace _ e.g. with -.



    Further readings:




    • Error when creating new project with Angular-CLI 6.1.2

    • Style Guide







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 17 '18 at 17:57









    pzaengerpzaenger

    3,01011626




    3,01011626













    • ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

      – David
      Nov 18 '18 at 18:43











    • What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

      – pzaenger
      Nov 18 '18 at 18:57



















    • ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

      – David
      Nov 18 '18 at 18:43











    • What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

      – pzaenger
      Nov 18 '18 at 18:57

















    ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

    – David
    Nov 18 '18 at 18:43





    ng new cvfrontend: I had the same problem, anyway I could created in the past names with underscot character. What do you need to show you my configuration?

    – David
    Nov 18 '18 at 18:43













    What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

    – pzaenger
    Nov 18 '18 at 18:57





    What does ng -v say? Does ng new foo && cd foo && npm i && npm start work?

    – pzaenger
    Nov 18 '18 at 18:57













    0














    I deleted the file in c:usersXXX.angular.json and it was running ok.






    share|improve this answer




























      0














      I deleted the file in c:usersXXX.angular.json and it was running ok.






      share|improve this answer


























        0












        0








        0







        I deleted the file in c:usersXXX.angular.json and it was running ok.






        share|improve this answer













        I deleted the file in c:usersXXX.angular.json and it was running ok.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 '18 at 16:31









        DavidDavid

        2,09651733




        2,09651733






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53353955%2fangular-ng-new-error-when-i-create-an-angular-project%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Futebolista

            Feedback on college project

            Albești (Vaslui)