{"id":7851,"date":"2021-08-12T13:26:22","date_gmt":"2021-08-12T13:26:22","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=7851"},"modified":"2021-08-12T13:26:23","modified_gmt":"2021-08-12T13:26:23","slug":"npm-run-dev-issue-npm-err-code-elifecycle","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/","title":{"rendered":"npm run dev issue (npm ERR! code ELIFECYCLE)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Error:-<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">> cross-env NODE_ENV=development node_modules\/webpack\/bin\/webpack.js --progress --hide-modules --config=node_modules\/laravel-mix\/setup\/webpack.config.js\r\n\r\n&#91;webpack-cli] Error: Unknown option '--hide-modules'\r\n&#91;webpack-cli] Run 'webpack --help' to see available commands and options\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 2\r\nnpm ERR! @ development: `cross-env NODE_ENV=development node_modules\/webpack\/bin\/webpack.js --progress --hide-modules --config=node_modules\/laravel-mix\/setup\/webpack.config.js`\r\nnpm ERR! Exit status 2\r\nnpm ERR!\r\nnpm ERR! Failed at the @ development script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\\Users\\Cotocus5\\AppData\\Roaming\\npm-cache\\_logs\\2021-08-12T12_23_56_189Z-debug.log\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 2\r\nnpm ERR! @ dev: `npm run development`\r\nnpm ERR! Exit status 2\r\nnpm ERR!\r\nnpm ERR! Failed at the @ dev script.\r\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\\Users\\Cotocus5\\AppData\\Roaming\\npm-cache\\_logs\\2021-08-12T12_23_56_273Z-debug.log\r\n<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Solution:-<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:-<\/strong> Run this command to verify cache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code><span class=\"has-inline-color has-vivid-purple-color\"><strong>npm cache verify<\/strong><\/span><\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:-<\/strong> Recheck your <strong>package.json<\/strong> and <strong>webpack.mix.js<\/strong> file it is correct or not.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:-<\/strong> Then Delete the Node Module file which is present in your project folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:-<\/strong> Run the Npm install command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-purple-color\">npm install<\/span><\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5:-<\/strong> Then Run npm run dev command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-purple-color\">npm run dev<\/span><\/strong><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Error:- Solution:- Step 1:- Run this command to verify cache Step 2:- Recheck your package.json and webpack.mix.js file it is [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":7867,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[408,5112,6261,6263,6262],"class_list":["post-7851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-npm","tag-npm-error","tag-npm-error-issue","tag-npm-run-dev-issue","tag-npm-run-dev-problem"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Error:- Solution:- Step 1:- Run this command to verify cache Step 2:- Recheck your package.json and webpack.mix.js file it is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100003935402658\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-12T13:26:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-12T13:26:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"467\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ashwani Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwani Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/\"},\"author\":{\"name\":\"Ashwani Kumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"headline\":\"npm run dev issue (npm ERR! code ELIFECYCLE)\",\"datePublished\":\"2021-08-12T13:26:22+00:00\",\"dateModified\":\"2021-08-12T13:26:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/\"},\"wordCount\":66,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Npm-error-issue.png\",\"keywords\":[\"npm\",\"NPM error\",\"npm error issue\",\"npm run dev issue\",\"npm run dev problem\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/\",\"name\":\"npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Npm-error-issue.png\",\"datePublished\":\"2021-08-12T13:26:22+00:00\",\"dateModified\":\"2021-08-12T13:26:23+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Npm-error-issue.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Npm-error-issue.png\",\"width\":1200,\"height\":467},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/npm-run-dev-issue-npm-err-code-elifecycle\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"npm run dev issue (npm ERR! code ELIFECYCLE)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\",\"name\":\"Ashwani Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g\",\"caption\":\"Ashwani Kumar\"},\"description\":\"There is no end to education. It is not that you read a book, pass an examination, and finish with education. The whole of life, from the moment you are born to the moment you die, is a process of learning.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100003935402658\",\"https:\\\/\\\/www.instagram.com\\\/adarshashwani\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/adarsh-ashwani-a75b23130\\\/\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/ashwani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/","og_locale":"en_US","og_type":"article","og_title":"npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy","og_description":"Error:- Solution:- Step 1:- Run this command to verify cache Step 2:- Recheck your package.json and webpack.mix.js file it is [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/","og_site_name":"scmGalaxy","article_author":"https:\/\/www.facebook.com\/profile.php?id=100003935402658","article_published_time":"2021-08-12T13:26:22+00:00","article_modified_time":"2021-08-12T13:26:23+00:00","og_image":[{"width":1200,"height":467,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png","type":"image\/png"}],"author":"Ashwani Kumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ashwani Kumar","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/"},"author":{"name":"Ashwani Kumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"headline":"npm run dev issue (npm ERR! code ELIFECYCLE)","datePublished":"2021-08-12T13:26:22+00:00","dateModified":"2021-08-12T13:26:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/"},"wordCount":66,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png","keywords":["npm","NPM error","npm error issue","npm run dev issue","npm run dev problem"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/","name":"npm run dev issue (npm ERR! code ELIFECYCLE) - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png","datePublished":"2021-08-12T13:26:22+00:00","dateModified":"2021-08-12T13:26:23+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/Npm-error-issue.png","width":1200,"height":467},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/npm-run-dev-issue-npm-err-code-elifecycle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"npm run dev issue (npm ERR! code ELIFECYCLE)"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31","name":"Ashwani Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0fe597f4b8473400f95ce54bee0bdd62df08a319a198ad229b279aaab4f5410?s=96&d=mm&r=g","caption":"Ashwani Kumar"},"description":"There is no end to education. It is not that you read a book, pass an examination, and finish with education. The whole of life, from the moment you are born to the moment you die, is a process of learning.","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100003935402658","https:\/\/www.instagram.com\/adarshashwani\/","https:\/\/www.linkedin.com\/in\/adarsh-ashwani-a75b23130\/"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/ashwani\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=7851"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7851\/revisions"}],"predecessor-version":[{"id":8699,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7851\/revisions\/8699"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/7867"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=7851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=7851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}