“npm start” command suddenly stopped working with “create-react-app” project folders with both old...












0















I've been using create-react-app to make some projects in react and also for practicing, and usually the way to run the project is to use the command npm start from the root directory of that project in the terminal. This has since stopped working for both my old projects which I haven't touched or completely new ones, and followed the exact instructions given by the error already to no effect.



An image of the error, the very top of the terminal is immediately after the npm start command:



npm start error with create-react-app projects



I have been googling this over the past two days and I simply can't figure it out. I'm hoping someone with better knowledge would know the root of why npm start has stopped working. Please keep in mind that I already tried the suggestions provided by the error in the terminal.



What's really mind boggling is I haven't changed pcs or done any editing in the old projects such as the one in the picture above, re-installed a bunch of stuff I thought might have been causing issues like npm or babel but they simply don't launch anymore.



Also almost forgot the error log, which has been even more confusing to figure out or google:



Error log for failing npm start.










share|improve this question





























    0















    I've been using create-react-app to make some projects in react and also for practicing, and usually the way to run the project is to use the command npm start from the root directory of that project in the terminal. This has since stopped working for both my old projects which I haven't touched or completely new ones, and followed the exact instructions given by the error already to no effect.



    An image of the error, the very top of the terminal is immediately after the npm start command:



    npm start error with create-react-app projects



    I have been googling this over the past two days and I simply can't figure it out. I'm hoping someone with better knowledge would know the root of why npm start has stopped working. Please keep in mind that I already tried the suggestions provided by the error in the terminal.



    What's really mind boggling is I haven't changed pcs or done any editing in the old projects such as the one in the picture above, re-installed a bunch of stuff I thought might have been causing issues like npm or babel but they simply don't launch anymore.



    Also almost forgot the error log, which has been even more confusing to figure out or google:



    Error log for failing npm start.










    share|improve this question



























      0












      0








      0








      I've been using create-react-app to make some projects in react and also for practicing, and usually the way to run the project is to use the command npm start from the root directory of that project in the terminal. This has since stopped working for both my old projects which I haven't touched or completely new ones, and followed the exact instructions given by the error already to no effect.



      An image of the error, the very top of the terminal is immediately after the npm start command:



      npm start error with create-react-app projects



      I have been googling this over the past two days and I simply can't figure it out. I'm hoping someone with better knowledge would know the root of why npm start has stopped working. Please keep in mind that I already tried the suggestions provided by the error in the terminal.



      What's really mind boggling is I haven't changed pcs or done any editing in the old projects such as the one in the picture above, re-installed a bunch of stuff I thought might have been causing issues like npm or babel but they simply don't launch anymore.



      Also almost forgot the error log, which has been even more confusing to figure out or google:



      Error log for failing npm start.










      share|improve this question
















      I've been using create-react-app to make some projects in react and also for practicing, and usually the way to run the project is to use the command npm start from the root directory of that project in the terminal. This has since stopped working for both my old projects which I haven't touched or completely new ones, and followed the exact instructions given by the error already to no effect.



      An image of the error, the very top of the terminal is immediately after the npm start command:



      npm start error with create-react-app projects



      I have been googling this over the past two days and I simply can't figure it out. I'm hoping someone with better knowledge would know the root of why npm start has stopped working. Please keep in mind that I already tried the suggestions provided by the error in the terminal.



      What's really mind boggling is I haven't changed pcs or done any editing in the old projects such as the one in the picture above, re-installed a bunch of stuff I thought might have been causing issues like npm or babel but they simply don't launch anymore.



      Also almost forgot the error log, which has been even more confusing to figure out or google:



      Error log for failing npm start.







      reactjs npm terminal






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 '18 at 6:00







      Darkphoton

















      asked Nov 18 '18 at 5:55









      DarkphotonDarkphoton

      122210




      122210
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You have problem with your dependencies. Please run



          npm i


          inside project directory.



          As your console shows, you can try




          • remove your node_modules directory

          • delete file package-lock

          • I suggest clean npm cache (npm cache clean -f)


          and reinstall node_modules using



          npm i





          share|improve this answer































            0














            There are many reasons to cause this problem.Some suggestions here:



            1.uninstall babel-loader and create-react-app globally



            npm uninstall -g babel-loader
            npm install -g create-react-app


            2.remove the error package



            rm -rf ~/node_modules/babel-loader


            3.stop all the command then clean up the cache of npm






            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%2f53358297%2fnpm-start-command-suddenly-stopped-working-with-create-react-app-project-fol%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









              0














              You have problem with your dependencies. Please run



              npm i


              inside project directory.



              As your console shows, you can try




              • remove your node_modules directory

              • delete file package-lock

              • I suggest clean npm cache (npm cache clean -f)


              and reinstall node_modules using



              npm i





              share|improve this answer




























                0














                You have problem with your dependencies. Please run



                npm i


                inside project directory.



                As your console shows, you can try




                • remove your node_modules directory

                • delete file package-lock

                • I suggest clean npm cache (npm cache clean -f)


                and reinstall node_modules using



                npm i





                share|improve this answer


























                  0












                  0








                  0







                  You have problem with your dependencies. Please run



                  npm i


                  inside project directory.



                  As your console shows, you can try




                  • remove your node_modules directory

                  • delete file package-lock

                  • I suggest clean npm cache (npm cache clean -f)


                  and reinstall node_modules using



                  npm i





                  share|improve this answer













                  You have problem with your dependencies. Please run



                  npm i


                  inside project directory.



                  As your console shows, you can try




                  • remove your node_modules directory

                  • delete file package-lock

                  • I suggest clean npm cache (npm cache clean -f)


                  and reinstall node_modules using



                  npm i






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 18 '18 at 9:49









                  Kamil NajaKamil Naja

                  7831717




                  7831717

























                      0














                      There are many reasons to cause this problem.Some suggestions here:



                      1.uninstall babel-loader and create-react-app globally



                      npm uninstall -g babel-loader
                      npm install -g create-react-app


                      2.remove the error package



                      rm -rf ~/node_modules/babel-loader


                      3.stop all the command then clean up the cache of npm






                      share|improve this answer




























                        0














                        There are many reasons to cause this problem.Some suggestions here:



                        1.uninstall babel-loader and create-react-app globally



                        npm uninstall -g babel-loader
                        npm install -g create-react-app


                        2.remove the error package



                        rm -rf ~/node_modules/babel-loader


                        3.stop all the command then clean up the cache of npm






                        share|improve this answer


























                          0












                          0








                          0







                          There are many reasons to cause this problem.Some suggestions here:



                          1.uninstall babel-loader and create-react-app globally



                          npm uninstall -g babel-loader
                          npm install -g create-react-app


                          2.remove the error package



                          rm -rf ~/node_modules/babel-loader


                          3.stop all the command then clean up the cache of npm






                          share|improve this answer













                          There are many reasons to cause this problem.Some suggestions here:



                          1.uninstall babel-loader and create-react-app globally



                          npm uninstall -g babel-loader
                          npm install -g create-react-app


                          2.remove the error package



                          rm -rf ~/node_modules/babel-loader


                          3.stop all the command then clean up the cache of npm







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 18 '18 at 15:40









                          RootRoot

                          1,513128




                          1,513128






























                              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%2f53358297%2fnpm-start-command-suddenly-stopped-working-with-create-react-app-project-fol%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

                              How to pass form data using jquery Ajax to insert data in database?

                              National Museum of Racing and Hall of Fame

                              Guess what letter conforming each word