{"id":7571,"date":"2021-08-07T11:48:32","date_gmt":"2021-08-07T11:48:32","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=7571"},"modified":"2021-08-07T11:48:34","modified_gmt":"2021-08-07T11:48:34","slug":"cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/","title":{"rendered":"&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hey if  you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.) in your Node please follow the steps which i have mentioned in following:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>You need to make cross-env working globally instead of having it in the project.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:-<\/strong> remove\u00a0<strong><code>node_modules<\/code><\/strong>\u00a0folder<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:-<\/strong> \u00a0run this Command so that you <strong>cross-env <\/strong>work globally.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">npm install --global cross-env<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:-<\/strong> Remove &#8220;cross-env&#8221;: &#8220;5.0.1&#8221; from the devDependencies section of the package.json file. You may actually skip this step and keep package.json. If you&#8217;d want.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4:-<\/strong> Then run this command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">npm install --no-bin-links<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5:-<\/strong> After this finally you can run your main command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><span class=\"has-inline-color has-vivid-red-color\">npm run dev<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey if you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program [&hellip;]<\/p>\n","protected":false},"author":33,"featured_media":7584,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[1],"tags":[6050,1543,6049,4602,6051,408,5244,5112],"class_list":["post-7571","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-cross-env","tag-node","tag-node-error","tag-nodejs","tag-not-recognized","tag-npm","tag-npm-err","tag-npm-error"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&#039;cross-env&#039; is not recognized as an internal or external command, operable program or batch file. - 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\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&#039;cross-env&#039; is not recognized as an internal or external command, operable program or batch file. - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Hey if you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/\" \/>\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-07T11:48:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-07T11:48:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"311\" \/>\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\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/\"},\"author\":{\"name\":\"Ashwani Kumar\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"headline\":\"&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.\",\"datePublished\":\"2021-08-07T11:48:32+00:00\",\"dateModified\":\"2021-08-07T11:48:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/\"},\"wordCount\":125,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/NPM-error.png\",\"keywords\":[\"cross-env\",\"Node\",\"node error\",\"nodejs\",\"not recognized\",\"npm\",\"npm err!\",\"NPM error\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/\",\"name\":\"'cross-env' is not recognized as an internal or external command, operable program or batch file. - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/NPM-error.png\",\"datePublished\":\"2021-08-07T11:48:32+00:00\",\"dateModified\":\"2021-08-07T11:48:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/19f28f8f969c1679bfb37d4dad6adc31\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/NPM-error.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/NPM-error.png\",\"width\":800,\"height\":311},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.\"}]},{\"@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":"'cross-env' is not recognized as an internal or external command, operable program or batch file. - 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\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/","og_locale":"en_US","og_type":"article","og_title":"'cross-env' is not recognized as an internal or external command, operable program or batch file. - scmGalaxy","og_description":"Hey if you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/","og_site_name":"scmGalaxy","article_author":"https:\/\/www.facebook.com\/profile.php?id=100003935402658","article_published_time":"2021-08-07T11:48:32+00:00","article_modified_time":"2021-08-07T11:48:34+00:00","og_image":[{"width":800,"height":311,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.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\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/"},"author":{"name":"Ashwani Kumar","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"headline":"&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.","datePublished":"2021-08-07T11:48:32+00:00","dateModified":"2021-08-07T11:48:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/"},"wordCount":125,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.png","keywords":["cross-env","Node","node error","nodejs","not recognized","npm","npm err!","NPM error"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/","name":"'cross-env' is not recognized as an internal or external command, operable program or batch file. - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.png","datePublished":"2021-08-07T11:48:32+00:00","dateModified":"2021-08-07T11:48:34+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/19f28f8f969c1679bfb37d4dad6adc31"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/NPM-error.png","width":800,"height":311},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file."}]},{"@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\/7571","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=7571"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7571\/revisions"}],"predecessor-version":[{"id":7585,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7571\/revisions\/7585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/7584"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=7571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=7571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}