Error: Cannot find module '@ionic/app-scripts'











up vote
27
down vote

favorite
12












I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'










share|improve this question




























    up vote
    27
    down vote

    favorite
    12












    I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'










    share|improve this question


























      up vote
      27
      down vote

      favorite
      12









      up vote
      27
      down vote

      favorite
      12






      12





      I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'










      share|improve this question















      I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'







      angularjs ionic-framework hybrid-mobile-app






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 6 '17 at 4:27









      Junyu

      134




      134










      asked Jun 6 '17 at 4:20









      Heng Sengthai

      138127




      138127
























          13 Answers
          13






          active

          oldest

          votes

















          up vote
          21
          down vote



          accepted










          app-scripts currently compatible with node 6 and 7.
          İf you installed node 8, then please uninstall and install node 6 stable version.
          This solved error and now i can use ionic 3, angular 4 .
          Take care!






          share|improve this answer























          • Yeah it worked, Thank you.
            – Heng Sengthai
            Jun 29 '17 at 3:55






          • 2




            After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
            – itay
            Oct 20 '17 at 17:57






          • 4




            If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
            – MaryAnn
            Dec 4 '17 at 5:29








          • 1




            No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
            – Jake Pucan
            Feb 14 at 8:02








          • 1




            It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
            – Stephen Romero
            Mar 19 at 16:26


















          up vote
          60
          down vote













          Try installing app-script from npm



          npm i @ionic/app-scripts






          share|improve this answer

















          • 4




            this is far more better solution than downgrading nodejs
            – Prageeth godage
            Aug 24 '17 at 6:27












          • While installing please dont use sudo command
            – Sandy
            Apr 21 at 17:47










          • if i will not use sudo then it will show permission issue .
            – Anuj
            May 17 at 7:31


















          up vote
          15
          down vote













          To get the latest @ionic/app-scripts, run the following command:



          npm install @ionic/app-scripts@latest --save-dev





          share|improve this answer






























            up vote
            6
            down vote













            I was facing same issue, here is what I did-




            1. Removed node_modules from directory (Manually).

            2. open project dir

            3. run this command-




             npm install


            That fixed those errors for me.



            See here.






            share|improve this answer




























              up vote
              5
              down vote













              do not downgrade the node version, update the version of "app-scripts":



              To get the latest @ionic/app-scripts, please run:





              npm install @ionic/app-scripts@latest --save-dev





              share|improve this answer























              • This is the right answer.
                – L Ananta Prasad
                Jun 18 at 10:05


















              up vote
              2
              down vote













              I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works






              share|improve this answer





















              • yeah.Thank you.
                – Heng Sengthai
                Jun 29 '17 at 3:56


















              up vote
              1
              down vote













              I tried every non-downgrade solution mentioned in this thread, in all kinds of ways and none of them worked. With nothing left to lose, I went down the downgrade route (I used sudo apt-get purge --auto-remove nodejs to remove previous 8.x version and then installed the last stable ver on the 6.x branch using the nodesource ppa).



              Still got the same errors trying to run in the original project folders, but then I created a new project and ionic serve worked just fine in that space.



              FWIW, I did not need to run npm update or npm i @ionic/app-scripts afterwards, but I did find it necessary to adopt the habit of running commands with sudo in front (or you sudo -s into root account).






              share|improve this answer






























                up vote
                0
                down vote













                I had the issue, solved by execute cnpm i @ionic/app-scripts.






                share|improve this answer




























                  up vote
                  0
                  down vote













                  Just open a new terminal window/session. I could not figure it out, but it's probably related to env.






                  share|improve this answer




























                    up vote
                    0
                    down vote













                    None of the options worked for me.
                    But I could make it work by updating node with
                    npm update
                    After this, the problem was solved and the application started.
                    Good Luck.






                    share|improve this answer




























                      up vote
                      0
                      down vote













                      I had the same problem and here is what worked for me



                      I was trying to run the program using VSCode terminal, Instead I used the windows cmd and it ran perfectly. I think the error is in VSCode terminal, it cannot identify the app-scripts module inside the project. Maybe it will be fixed in a later update.






                      share|improve this answer




























                        up vote
                        -2
                        down vote













                        You must create the project as administrator if you have mac or linux uses sudo, if you have windows run the console as administrator and create the project






                        share|improve this answer





















                        • Yeah, thank you
                          – Heng Sengthai
                          Jun 29 '17 at 3:56


















                        up vote
                        -3
                        down vote













                        My issue was solved after run this script:



                        npm i @ionic/app-scripts





                        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',
                          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%2f44381358%2ferror-cannot-find-module-ionic-app-scripts%23new-answer', 'question_page');
                          }
                          );

                          Post as a guest















                          Required, but never shown

























                          13 Answers
                          13






                          active

                          oldest

                          votes








                          13 Answers
                          13






                          active

                          oldest

                          votes









                          active

                          oldest

                          votes






                          active

                          oldest

                          votes








                          up vote
                          21
                          down vote



                          accepted










                          app-scripts currently compatible with node 6 and 7.
                          İf you installed node 8, then please uninstall and install node 6 stable version.
                          This solved error and now i can use ionic 3, angular 4 .
                          Take care!






                          share|improve this answer























                          • Yeah it worked, Thank you.
                            – Heng Sengthai
                            Jun 29 '17 at 3:55






                          • 2




                            After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                            – itay
                            Oct 20 '17 at 17:57






                          • 4




                            If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                            – MaryAnn
                            Dec 4 '17 at 5:29








                          • 1




                            No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                            – Jake Pucan
                            Feb 14 at 8:02








                          • 1




                            It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                            – Stephen Romero
                            Mar 19 at 16:26















                          up vote
                          21
                          down vote



                          accepted










                          app-scripts currently compatible with node 6 and 7.
                          İf you installed node 8, then please uninstall and install node 6 stable version.
                          This solved error and now i can use ionic 3, angular 4 .
                          Take care!






                          share|improve this answer























                          • Yeah it worked, Thank you.
                            – Heng Sengthai
                            Jun 29 '17 at 3:55






                          • 2




                            After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                            – itay
                            Oct 20 '17 at 17:57






                          • 4




                            If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                            – MaryAnn
                            Dec 4 '17 at 5:29








                          • 1




                            No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                            – Jake Pucan
                            Feb 14 at 8:02








                          • 1




                            It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                            – Stephen Romero
                            Mar 19 at 16:26













                          up vote
                          21
                          down vote



                          accepted







                          up vote
                          21
                          down vote



                          accepted






                          app-scripts currently compatible with node 6 and 7.
                          İf you installed node 8, then please uninstall and install node 6 stable version.
                          This solved error and now i can use ionic 3, angular 4 .
                          Take care!






                          share|improve this answer














                          app-scripts currently compatible with node 6 and 7.
                          İf you installed node 8, then please uninstall and install node 6 stable version.
                          This solved error and now i can use ionic 3, angular 4 .
                          Take care!







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 2 at 21:17









                          shubh jaiswal

                          1971318




                          1971318










                          answered Jun 25 '17 at 19:35









                          softdevac

                          25015




                          25015












                          • Yeah it worked, Thank you.
                            – Heng Sengthai
                            Jun 29 '17 at 3:55






                          • 2




                            After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                            – itay
                            Oct 20 '17 at 17:57






                          • 4




                            If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                            – MaryAnn
                            Dec 4 '17 at 5:29








                          • 1




                            No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                            – Jake Pucan
                            Feb 14 at 8:02








                          • 1




                            It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                            – Stephen Romero
                            Mar 19 at 16:26


















                          • Yeah it worked, Thank you.
                            – Heng Sengthai
                            Jun 29 '17 at 3:55






                          • 2




                            After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                            – itay
                            Oct 20 '17 at 17:57






                          • 4




                            If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                            – MaryAnn
                            Dec 4 '17 at 5:29








                          • 1




                            No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                            – Jake Pucan
                            Feb 14 at 8:02








                          • 1




                            It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                            – Stephen Romero
                            Mar 19 at 16:26
















                          Yeah it worked, Thank you.
                          – Heng Sengthai
                          Jun 29 '17 at 3:55




                          Yeah it worked, Thank you.
                          – Heng Sengthai
                          Jun 29 '17 at 3:55




                          2




                          2




                          After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                          – itay
                          Oct 20 '17 at 17:57




                          After downgrade from 8 to 6 you will need to run npm i @ionic/app-scripts (even if you had run it before) that worked for me
                          – itay
                          Oct 20 '17 at 17:57




                          4




                          4




                          If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                          – MaryAnn
                          Dec 4 '17 at 5:29






                          If you dont want node 8 to be uninstalled, then try this which worked for me .Run this command in terminal 'npm install @ionic/app-scripts@latest --save-dev'
                          – MaryAnn
                          Dec 4 '17 at 5:29






                          1




                          1




                          No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                          – Jake Pucan
                          Feb 14 at 8:02






                          No need to downgrade NodeJS version. running npm i @ionic/app-scripts in NodeJS v8 works fine.
                          – Jake Pucan
                          Feb 14 at 8:02






                          1




                          1




                          It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                          – Stephen Romero
                          Mar 19 at 16:26




                          It would be beneficial to include the commands to uninstall the current version of node and install the version needed for convenience.
                          – Stephen Romero
                          Mar 19 at 16:26












                          up vote
                          60
                          down vote













                          Try installing app-script from npm



                          npm i @ionic/app-scripts






                          share|improve this answer

















                          • 4




                            this is far more better solution than downgrading nodejs
                            – Prageeth godage
                            Aug 24 '17 at 6:27












                          • While installing please dont use sudo command
                            – Sandy
                            Apr 21 at 17:47










                          • if i will not use sudo then it will show permission issue .
                            – Anuj
                            May 17 at 7:31















                          up vote
                          60
                          down vote













                          Try installing app-script from npm



                          npm i @ionic/app-scripts






                          share|improve this answer

















                          • 4




                            this is far more better solution than downgrading nodejs
                            – Prageeth godage
                            Aug 24 '17 at 6:27












                          • While installing please dont use sudo command
                            – Sandy
                            Apr 21 at 17:47










                          • if i will not use sudo then it will show permission issue .
                            – Anuj
                            May 17 at 7:31













                          up vote
                          60
                          down vote










                          up vote
                          60
                          down vote









                          Try installing app-script from npm



                          npm i @ionic/app-scripts






                          share|improve this answer












                          Try installing app-script from npm



                          npm i @ionic/app-scripts







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jun 6 '17 at 5:05









                          SAJ

                          1,8811921




                          1,8811921








                          • 4




                            this is far more better solution than downgrading nodejs
                            – Prageeth godage
                            Aug 24 '17 at 6:27












                          • While installing please dont use sudo command
                            – Sandy
                            Apr 21 at 17:47










                          • if i will not use sudo then it will show permission issue .
                            – Anuj
                            May 17 at 7:31














                          • 4




                            this is far more better solution than downgrading nodejs
                            – Prageeth godage
                            Aug 24 '17 at 6:27












                          • While installing please dont use sudo command
                            – Sandy
                            Apr 21 at 17:47










                          • if i will not use sudo then it will show permission issue .
                            – Anuj
                            May 17 at 7:31








                          4




                          4




                          this is far more better solution than downgrading nodejs
                          – Prageeth godage
                          Aug 24 '17 at 6:27






                          this is far more better solution than downgrading nodejs
                          – Prageeth godage
                          Aug 24 '17 at 6:27














                          While installing please dont use sudo command
                          – Sandy
                          Apr 21 at 17:47




                          While installing please dont use sudo command
                          – Sandy
                          Apr 21 at 17:47












                          if i will not use sudo then it will show permission issue .
                          – Anuj
                          May 17 at 7:31




                          if i will not use sudo then it will show permission issue .
                          – Anuj
                          May 17 at 7:31










                          up vote
                          15
                          down vote













                          To get the latest @ionic/app-scripts, run the following command:



                          npm install @ionic/app-scripts@latest --save-dev





                          share|improve this answer



























                            up vote
                            15
                            down vote













                            To get the latest @ionic/app-scripts, run the following command:



                            npm install @ionic/app-scripts@latest --save-dev





                            share|improve this answer

























                              up vote
                              15
                              down vote










                              up vote
                              15
                              down vote









                              To get the latest @ionic/app-scripts, run the following command:



                              npm install @ionic/app-scripts@latest --save-dev





                              share|improve this answer














                              To get the latest @ionic/app-scripts, run the following command:



                              npm install @ionic/app-scripts@latest --save-dev






                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Aug 16 '17 at 11:38

























                              answered Aug 16 '17 at 11:11









                              Vijay Chauhan

                              479410




                              479410






















                                  up vote
                                  6
                                  down vote













                                  I was facing same issue, here is what I did-




                                  1. Removed node_modules from directory (Manually).

                                  2. open project dir

                                  3. run this command-




                                   npm install


                                  That fixed those errors for me.



                                  See here.






                                  share|improve this answer

























                                    up vote
                                    6
                                    down vote













                                    I was facing same issue, here is what I did-




                                    1. Removed node_modules from directory (Manually).

                                    2. open project dir

                                    3. run this command-




                                     npm install


                                    That fixed those errors for me.



                                    See here.






                                    share|improve this answer























                                      up vote
                                      6
                                      down vote










                                      up vote
                                      6
                                      down vote









                                      I was facing same issue, here is what I did-




                                      1. Removed node_modules from directory (Manually).

                                      2. open project dir

                                      3. run this command-




                                       npm install


                                      That fixed those errors for me.



                                      See here.






                                      share|improve this answer












                                      I was facing same issue, here is what I did-




                                      1. Removed node_modules from directory (Manually).

                                      2. open project dir

                                      3. run this command-




                                       npm install


                                      That fixed those errors for me.



                                      See here.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Sep 5 '17 at 10:29









                                      S.Yadav

                                      1,1141324




                                      1,1141324






















                                          up vote
                                          5
                                          down vote













                                          do not downgrade the node version, update the version of "app-scripts":



                                          To get the latest @ionic/app-scripts, please run:





                                          npm install @ionic/app-scripts@latest --save-dev





                                          share|improve this answer























                                          • This is the right answer.
                                            – L Ananta Prasad
                                            Jun 18 at 10:05















                                          up vote
                                          5
                                          down vote













                                          do not downgrade the node version, update the version of "app-scripts":



                                          To get the latest @ionic/app-scripts, please run:





                                          npm install @ionic/app-scripts@latest --save-dev





                                          share|improve this answer























                                          • This is the right answer.
                                            – L Ananta Prasad
                                            Jun 18 at 10:05













                                          up vote
                                          5
                                          down vote










                                          up vote
                                          5
                                          down vote









                                          do not downgrade the node version, update the version of "app-scripts":



                                          To get the latest @ionic/app-scripts, please run:





                                          npm install @ionic/app-scripts@latest --save-dev





                                          share|improve this answer














                                          do not downgrade the node version, update the version of "app-scripts":



                                          To get the latest @ionic/app-scripts, please run:





                                          npm install @ionic/app-scripts@latest --save-dev






                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Jul 27 at 20:54

























                                          answered Jun 13 at 20:53









                                          Nicolai Pefaur Zschoche

                                          7112




                                          7112












                                          • This is the right answer.
                                            – L Ananta Prasad
                                            Jun 18 at 10:05


















                                          • This is the right answer.
                                            – L Ananta Prasad
                                            Jun 18 at 10:05
















                                          This is the right answer.
                                          – L Ananta Prasad
                                          Jun 18 at 10:05




                                          This is the right answer.
                                          – L Ananta Prasad
                                          Jun 18 at 10:05










                                          up vote
                                          2
                                          down vote













                                          I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works






                                          share|improve this answer





















                                          • yeah.Thank you.
                                            – Heng Sengthai
                                            Jun 29 '17 at 3:56















                                          up vote
                                          2
                                          down vote













                                          I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works






                                          share|improve this answer





















                                          • yeah.Thank you.
                                            – Heng Sengthai
                                            Jun 29 '17 at 3:56













                                          up vote
                                          2
                                          down vote










                                          up vote
                                          2
                                          down vote









                                          I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works






                                          share|improve this answer












                                          I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Jun 26 '17 at 5:49









                                          To Be

                                          1901421




                                          1901421












                                          • yeah.Thank you.
                                            – Heng Sengthai
                                            Jun 29 '17 at 3:56


















                                          • yeah.Thank you.
                                            – Heng Sengthai
                                            Jun 29 '17 at 3:56
















                                          yeah.Thank you.
                                          – Heng Sengthai
                                          Jun 29 '17 at 3:56




                                          yeah.Thank you.
                                          – Heng Sengthai
                                          Jun 29 '17 at 3:56










                                          up vote
                                          1
                                          down vote













                                          I tried every non-downgrade solution mentioned in this thread, in all kinds of ways and none of them worked. With nothing left to lose, I went down the downgrade route (I used sudo apt-get purge --auto-remove nodejs to remove previous 8.x version and then installed the last stable ver on the 6.x branch using the nodesource ppa).



                                          Still got the same errors trying to run in the original project folders, but then I created a new project and ionic serve worked just fine in that space.



                                          FWIW, I did not need to run npm update or npm i @ionic/app-scripts afterwards, but I did find it necessary to adopt the habit of running commands with sudo in front (or you sudo -s into root account).






                                          share|improve this answer



























                                            up vote
                                            1
                                            down vote













                                            I tried every non-downgrade solution mentioned in this thread, in all kinds of ways and none of them worked. With nothing left to lose, I went down the downgrade route (I used sudo apt-get purge --auto-remove nodejs to remove previous 8.x version and then installed the last stable ver on the 6.x branch using the nodesource ppa).



                                            Still got the same errors trying to run in the original project folders, but then I created a new project and ionic serve worked just fine in that space.



                                            FWIW, I did not need to run npm update or npm i @ionic/app-scripts afterwards, but I did find it necessary to adopt the habit of running commands with sudo in front (or you sudo -s into root account).






                                            share|improve this answer

























                                              up vote
                                              1
                                              down vote










                                              up vote
                                              1
                                              down vote









                                              I tried every non-downgrade solution mentioned in this thread, in all kinds of ways and none of them worked. With nothing left to lose, I went down the downgrade route (I used sudo apt-get purge --auto-remove nodejs to remove previous 8.x version and then installed the last stable ver on the 6.x branch using the nodesource ppa).



                                              Still got the same errors trying to run in the original project folders, but then I created a new project and ionic serve worked just fine in that space.



                                              FWIW, I did not need to run npm update or npm i @ionic/app-scripts afterwards, but I did find it necessary to adopt the habit of running commands with sudo in front (or you sudo -s into root account).






                                              share|improve this answer














                                              I tried every non-downgrade solution mentioned in this thread, in all kinds of ways and none of them worked. With nothing left to lose, I went down the downgrade route (I used sudo apt-get purge --auto-remove nodejs to remove previous 8.x version and then installed the last stable ver on the 6.x branch using the nodesource ppa).



                                              Still got the same errors trying to run in the original project folders, but then I created a new project and ionic serve worked just fine in that space.



                                              FWIW, I did not need to run npm update or npm i @ionic/app-scripts afterwards, but I did find it necessary to adopt the habit of running commands with sudo in front (or you sudo -s into root account).







                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited Mar 25 at 18:03

























                                              answered Mar 25 at 14:58









                                              Charles Thomas Ingles

                                              1591111




                                              1591111






















                                                  up vote
                                                  0
                                                  down vote













                                                  I had the issue, solved by execute cnpm i @ionic/app-scripts.






                                                  share|improve this answer

























                                                    up vote
                                                    0
                                                    down vote













                                                    I had the issue, solved by execute cnpm i @ionic/app-scripts.






                                                    share|improve this answer























                                                      up vote
                                                      0
                                                      down vote










                                                      up vote
                                                      0
                                                      down vote









                                                      I had the issue, solved by execute cnpm i @ionic/app-scripts.






                                                      share|improve this answer












                                                      I had the issue, solved by execute cnpm i @ionic/app-scripts.







                                                      share|improve this answer












                                                      share|improve this answer



                                                      share|improve this answer










                                                      answered Aug 7 '17 at 7:09









                                                      kingfeng

                                                      764




                                                      764






















                                                          up vote
                                                          0
                                                          down vote













                                                          Just open a new terminal window/session. I could not figure it out, but it's probably related to env.






                                                          share|improve this answer

























                                                            up vote
                                                            0
                                                            down vote













                                                            Just open a new terminal window/session. I could not figure it out, but it's probably related to env.






                                                            share|improve this answer























                                                              up vote
                                                              0
                                                              down vote










                                                              up vote
                                                              0
                                                              down vote









                                                              Just open a new terminal window/session. I could not figure it out, but it's probably related to env.






                                                              share|improve this answer












                                                              Just open a new terminal window/session. I could not figure it out, but it's probably related to env.







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Dec 4 '17 at 9:23









                                                              Adam Voga

                                                              698




                                                              698






















                                                                  up vote
                                                                  0
                                                                  down vote













                                                                  None of the options worked for me.
                                                                  But I could make it work by updating node with
                                                                  npm update
                                                                  After this, the problem was solved and the application started.
                                                                  Good Luck.






                                                                  share|improve this answer

























                                                                    up vote
                                                                    0
                                                                    down vote













                                                                    None of the options worked for me.
                                                                    But I could make it work by updating node with
                                                                    npm update
                                                                    After this, the problem was solved and the application started.
                                                                    Good Luck.






                                                                    share|improve this answer























                                                                      up vote
                                                                      0
                                                                      down vote










                                                                      up vote
                                                                      0
                                                                      down vote









                                                                      None of the options worked for me.
                                                                      But I could make it work by updating node with
                                                                      npm update
                                                                      After this, the problem was solved and the application started.
                                                                      Good Luck.






                                                                      share|improve this answer












                                                                      None of the options worked for me.
                                                                      But I could make it work by updating node with
                                                                      npm update
                                                                      After this, the problem was solved and the application started.
                                                                      Good Luck.







                                                                      share|improve this answer












                                                                      share|improve this answer



                                                                      share|improve this answer










                                                                      answered Feb 11 at 16:51









                                                                      David Luna

                                                                      1




                                                                      1






















                                                                          up vote
                                                                          0
                                                                          down vote













                                                                          I had the same problem and here is what worked for me



                                                                          I was trying to run the program using VSCode terminal, Instead I used the windows cmd and it ran perfectly. I think the error is in VSCode terminal, it cannot identify the app-scripts module inside the project. Maybe it will be fixed in a later update.






                                                                          share|improve this answer

























                                                                            up vote
                                                                            0
                                                                            down vote













                                                                            I had the same problem and here is what worked for me



                                                                            I was trying to run the program using VSCode terminal, Instead I used the windows cmd and it ran perfectly. I think the error is in VSCode terminal, it cannot identify the app-scripts module inside the project. Maybe it will be fixed in a later update.






                                                                            share|improve this answer























                                                                              up vote
                                                                              0
                                                                              down vote










                                                                              up vote
                                                                              0
                                                                              down vote









                                                                              I had the same problem and here is what worked for me



                                                                              I was trying to run the program using VSCode terminal, Instead I used the windows cmd and it ran perfectly. I think the error is in VSCode terminal, it cannot identify the app-scripts module inside the project. Maybe it will be fixed in a later update.






                                                                              share|improve this answer












                                                                              I had the same problem and here is what worked for me



                                                                              I was trying to run the program using VSCode terminal, Instead I used the windows cmd and it ran perfectly. I think the error is in VSCode terminal, it cannot identify the app-scripts module inside the project. Maybe it will be fixed in a later update.







                                                                              share|improve this answer












                                                                              share|improve this answer



                                                                              share|improve this answer










                                                                              answered Nov 10 at 14:25









                                                                              dilanSachi

                                                                              768




                                                                              768






















                                                                                  up vote
                                                                                  -2
                                                                                  down vote













                                                                                  You must create the project as administrator if you have mac or linux uses sudo, if you have windows run the console as administrator and create the project






                                                                                  share|improve this answer





















                                                                                  • Yeah, thank you
                                                                                    – Heng Sengthai
                                                                                    Jun 29 '17 at 3:56















                                                                                  up vote
                                                                                  -2
                                                                                  down vote













                                                                                  You must create the project as administrator if you have mac or linux uses sudo, if you have windows run the console as administrator and create the project






                                                                                  share|improve this answer





















                                                                                  • Yeah, thank you
                                                                                    – Heng Sengthai
                                                                                    Jun 29 '17 at 3:56













                                                                                  up vote
                                                                                  -2
                                                                                  down vote










                                                                                  up vote
                                                                                  -2
                                                                                  down vote









                                                                                  You must create the project as administrator if you have mac or linux uses sudo, if you have windows run the console as administrator and create the project






                                                                                  share|improve this answer












                                                                                  You must create the project as administrator if you have mac or linux uses sudo, if you have windows run the console as administrator and create the project







                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Jun 19 '17 at 22:36









                                                                                  Oscar Mera

                                                                                  12




                                                                                  12












                                                                                  • Yeah, thank you
                                                                                    – Heng Sengthai
                                                                                    Jun 29 '17 at 3:56


















                                                                                  • Yeah, thank you
                                                                                    – Heng Sengthai
                                                                                    Jun 29 '17 at 3:56
















                                                                                  Yeah, thank you
                                                                                  – Heng Sengthai
                                                                                  Jun 29 '17 at 3:56




                                                                                  Yeah, thank you
                                                                                  – Heng Sengthai
                                                                                  Jun 29 '17 at 3:56










                                                                                  up vote
                                                                                  -3
                                                                                  down vote













                                                                                  My issue was solved after run this script:



                                                                                  npm i @ionic/app-scripts





                                                                                  share|improve this answer



























                                                                                    up vote
                                                                                    -3
                                                                                    down vote













                                                                                    My issue was solved after run this script:



                                                                                    npm i @ionic/app-scripts





                                                                                    share|improve this answer

























                                                                                      up vote
                                                                                      -3
                                                                                      down vote










                                                                                      up vote
                                                                                      -3
                                                                                      down vote









                                                                                      My issue was solved after run this script:



                                                                                      npm i @ionic/app-scripts





                                                                                      share|improve this answer














                                                                                      My issue was solved after run this script:



                                                                                      npm i @ionic/app-scripts






                                                                                      share|improve this answer














                                                                                      share|improve this answer



                                                                                      share|improve this answer








                                                                                      edited Jun 9 at 18:09









                                                                                      zx485

                                                                                      12.7k122845




                                                                                      12.7k122845










                                                                                      answered Jun 9 at 11:12









                                                                                      Gaden

                                                                                      851




                                                                                      851






























                                                                                           

                                                                                          draft saved


                                                                                          draft discarded



















































                                                                                           


                                                                                          draft saved


                                                                                          draft discarded














                                                                                          StackExchange.ready(
                                                                                          function () {
                                                                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44381358%2ferror-cannot-find-module-ionic-app-scripts%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

                                                                                          Coverage of Google Street View

                                                                                          Full-time equivalent

                                                                                          Surfing