How to fix npm run serve in vue js











up vote
1
down vote

favorite












I use cli3 vue, when running npm run serve there is an error even though nothing happened before. error code is




npm ERR! code ELIFECYCLE




cmd error:




E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb>npm run serve




adminweb@0.1.0 serve E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb
vue-cli-service serve
E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminwebnode_modules@vuecli-servicebinvue-cli-service.js:1
(function (exports, require, module, __filename, __dirname) {
))})),"JSON",{stringify:function(e){if(void 0!==e&&!W(e)){for(var
t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);return
t=n[1],"function"==typeof
t&&(r=t),!r&&b(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!W(t))return t}),n[1]=t,O.apply(B,n)}}}),P.prototype[N]||e("./_hide")(P.prototype,N,P.prototype.valueOf),p(P,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},{"./_an-object":205,"./_descriptors":220,"./_enum-keys":223,"./_export":224,"./_fails":225,"./_global":227,"./_has":228,"./_hide":229,"./_is-array":234,"./_keyof":241,"./_library":242,"./_meta":243,"./_object-create":245,"./_object-dp":246,"./_object-gopd":248,"./_object-gopn":250,"./_object-gopn-ext":249,"./_object-gops":251,"./_object-keys":254,"./_object-pie":255,"./_property-desc":257,"./_redefine":259,"./_set-to-string-tag":262,"./_shared":264,"./_to-iobject":268,"./




SyntaxError: Unexpected token )
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! adminweb@0.1.0 serve:
vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR!
Failed at the adminweb@0.1.0 serve script. npm ERR! This is probably
not a problem with npm. There is likely additional logging output
above.



npm ERR! A complete log of this run can be found in: npm ERR!

C:UsersAbdul
RahmatAppDataRoamingnpm-cache_logs2018-11-09T03_32_10_174Z-debug.log











share|improve this question




























    up vote
    1
    down vote

    favorite












    I use cli3 vue, when running npm run serve there is an error even though nothing happened before. error code is




    npm ERR! code ELIFECYCLE




    cmd error:




    E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb>npm run serve




    adminweb@0.1.0 serve E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb
    vue-cli-service serve
    E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminwebnode_modules@vuecli-servicebinvue-cli-service.js:1
    (function (exports, require, module, __filename, __dirname) {
    ))})),"JSON",{stringify:function(e){if(void 0!==e&&!W(e)){for(var
    t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);return
    t=n[1],"function"==typeof
    t&&(r=t),!r&&b(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!W(t))return t}),n[1]=t,O.apply(B,n)}}}),P.prototype[N]||e("./_hide")(P.prototype,N,P.prototype.valueOf),p(P,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},{"./_an-object":205,"./_descriptors":220,"./_enum-keys":223,"./_export":224,"./_fails":225,"./_global":227,"./_has":228,"./_hide":229,"./_is-array":234,"./_keyof":241,"./_library":242,"./_meta":243,"./_object-create":245,"./_object-dp":246,"./_object-gopd":248,"./_object-gopn":250,"./_object-gopn-ext":249,"./_object-gops":251,"./_object-keys":254,"./_object-pie":255,"./_property-desc":257,"./_redefine":259,"./_set-to-string-tag":262,"./_shared":264,"./_to-iobject":268,"./




    SyntaxError: Unexpected token )
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:656:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! adminweb@0.1.0 serve:
    vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR!
    Failed at the adminweb@0.1.0 serve script. npm ERR! This is probably
    not a problem with npm. There is likely additional logging output
    above.



    npm ERR! A complete log of this run can be found in: npm ERR!

    C:UsersAbdul
    RahmatAppDataRoamingnpm-cache_logs2018-11-09T03_32_10_174Z-debug.log











    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I use cli3 vue, when running npm run serve there is an error even though nothing happened before. error code is




      npm ERR! code ELIFECYCLE




      cmd error:




      E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb>npm run serve




      adminweb@0.1.0 serve E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb
      vue-cli-service serve
      E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminwebnode_modules@vuecli-servicebinvue-cli-service.js:1
      (function (exports, require, module, __filename, __dirname) {
      ))})),"JSON",{stringify:function(e){if(void 0!==e&&!W(e)){for(var
      t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);return
      t=n[1],"function"==typeof
      t&&(r=t),!r&&b(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!W(t))return t}),n[1]=t,O.apply(B,n)}}}),P.prototype[N]||e("./_hide")(P.prototype,N,P.prototype.valueOf),p(P,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},{"./_an-object":205,"./_descriptors":220,"./_enum-keys":223,"./_export":224,"./_fails":225,"./_global":227,"./_has":228,"./_hide":229,"./_is-array":234,"./_keyof":241,"./_library":242,"./_meta":243,"./_object-create":245,"./_object-dp":246,"./_object-gopd":248,"./_object-gopn":250,"./_object-gopn-ext":249,"./_object-gops":251,"./_object-keys":254,"./_object-pie":255,"./_property-desc":257,"./_redefine":259,"./_set-to-string-tag":262,"./_shared":264,"./_to-iobject":268,"./




      SyntaxError: Unexpected token )
      at new Script (vm.js:79:7)
      at createScript (vm.js:251:10)
      at Object.runInThisContext (vm.js:303:10)
      at Module._compile (internal/modules/cjs/loader.js:656:28)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
      at Module.load (internal/modules/cjs/loader.js:598:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
      at Function.Module._load (internal/modules/cjs/loader.js:529:3)
      at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
      at startup (internal/bootstrap/node.js:285:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! adminweb@0.1.0 serve:
      vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR!
      Failed at the adminweb@0.1.0 serve script. npm ERR! This is probably
      not a problem with npm. There is likely additional logging output
      above.



      npm ERR! A complete log of this run can be found in: npm ERR!

      C:UsersAbdul
      RahmatAppDataRoamingnpm-cache_logs2018-11-09T03_32_10_174Z-debug.log











      share|improve this question















      I use cli3 vue, when running npm run serve there is an error even though nothing happened before. error code is




      npm ERR! code ELIFECYCLE




      cmd error:




      E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb>npm run serve




      adminweb@0.1.0 serve E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminweb
      vue-cli-service serve
      E:tugas kuliahRahmatMI 3 B 2016SM 6TAadminwebnode_modules@vuecli-servicebinvue-cli-service.js:1
      (function (exports, require, module, __filename, __dirname) {
      ))})),"JSON",{stringify:function(e){if(void 0!==e&&!W(e)){for(var
      t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);return
      t=n[1],"function"==typeof
      t&&(r=t),!r&&b(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!W(t))return t}),n[1]=t,O.apply(B,n)}}}),P.prototype[N]||e("./_hide")(P.prototype,N,P.prototype.valueOf),p(P,"Symbol"),p(Math,"Math",!0),p(n.JSON,"JSON",!0)},{"./_an-object":205,"./_descriptors":220,"./_enum-keys":223,"./_export":224,"./_fails":225,"./_global":227,"./_has":228,"./_hide":229,"./_is-array":234,"./_keyof":241,"./_library":242,"./_meta":243,"./_object-create":245,"./_object-dp":246,"./_object-gopd":248,"./_object-gopn":250,"./_object-gopn-ext":249,"./_object-gops":251,"./_object-keys":254,"./_object-pie":255,"./_property-desc":257,"./_redefine":259,"./_set-to-string-tag":262,"./_shared":264,"./_to-iobject":268,"./




      SyntaxError: Unexpected token )
      at new Script (vm.js:79:7)
      at createScript (vm.js:251:10)
      at Object.runInThisContext (vm.js:303:10)
      at Module._compile (internal/modules/cjs/loader.js:656:28)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
      at Module.load (internal/modules/cjs/loader.js:598:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
      at Function.Module._load (internal/modules/cjs/loader.js:529:3)
      at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
      at startup (internal/bootstrap/node.js:285:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! adminweb@0.1.0 serve:
      vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR!
      Failed at the adminweb@0.1.0 serve script. npm ERR! This is probably
      not a problem with npm. There is likely additional logging output
      above.



      npm ERR! A complete log of this run can be found in: npm ERR!

      C:UsersAbdul
      RahmatAppDataRoamingnpm-cache_logs2018-11-09T03_32_10_174Z-debug.log








      node.js npm vue-cli-3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 5:15









      Tân Nguyễn

      4,33332451




      4,33332451










      asked Nov 9 at 3:44









      Abdul Rahmat

      214




      214





























          active

          oldest

          votes











          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%2f53219561%2fhow-to-fix-npm-run-serve-in-vue-js%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53219561%2fhow-to-fix-npm-run-serve-in-vue-js%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

          Schultheiß

          Verwaltungsgliederung Dänemarks

          Liste der Kulturdenkmale in Wilsdruff