Error while initiating Yeoman generator

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












When I was trying Yeoman generator using this link, I got the following error message:



root@SYSGSOFT:/home/sysg_soft# yo flask-api 
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:577:33)
at Object.fs.readFileSync (fs.js:483:33)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)






share|improve this question


























    up vote
    2
    down vote

    favorite












    When I was trying Yeoman generator using this link, I got the following error message:



    root@SYSGSOFT:/home/sysg_soft# yo flask-api 
    /usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
    throw err;
    ^
    Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
    You don't have access to this file.
    at Object.fs.openSync (fs.js:577:33)
    at Object.fs.readFileSync (fs.js:483:33)
    at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
    at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
    at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
    at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)






    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      When I was trying Yeoman generator using this link, I got the following error message:



      root@SYSGSOFT:/home/sysg_soft# yo flask-api 
      /usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
      throw err;
      ^
      Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
      You don't have access to this file.
      at Object.fs.openSync (fs.js:577:33)
      at Object.fs.readFileSync (fs.js:483:33)
      at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
      at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
      at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
      at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
      at Module._compile (internal/modules/cjs/loader.js:702:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
      at Module.load (internal/modules/cjs/loader.js:612:32)






      share|improve this question














      When I was trying Yeoman generator using this link, I got the following error message:



      root@SYSGSOFT:/home/sysg_soft# yo flask-api 
      /usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
      throw err;
      ^
      Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
      You don't have access to this file.
      at Object.fs.openSync (fs.js:577:33)
      at Object.fs.readFileSync (fs.js:483:33)
      at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
      at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
      at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
      at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
      at Module._compile (internal/modules/cjs/loader.js:702:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
      at Module.load (internal/modules/cjs/loader.js:612:32)








      share|improve this question













      share|improve this question




      share|improve this question








      edited May 29 at 12:11









      karel

      49.6k11105126




      49.6k11105126










      asked May 29 at 11:37









      SRJ577

      355




      355




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041552%2ferror-while-initiating-yeoman-generator%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.






                share|improve this answer












                To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 29 at 11:40









                karel

                49.6k11105126




                49.6k11105126






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041552%2ferror-while-initiating-yeoman-generator%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do I move numbers in filenames, in a batch renaming operation?