{"id":9497,"date":"2019-10-01T01:25:03","date_gmt":"2019-10-01T06:25:03","guid":{"rendered":"https:\/\/krisbunda.com\/blog\/?p=9497"},"modified":"2019-10-11T16:10:53","modified_gmt":"2019-10-11T21:10:53","slug":"try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment","status":"publish","type":"post","link":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/","title":{"rendered":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;m posting this because it took me a while to figure out, so hopefully it takes you less time. If you&#8217;re seeing &#8220;<code>wp-scripts is not recognized as an internal or external command<\/code>&#8221; errors, read on. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"516\" height=\"1327\" loading=\"lazy\" src=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Hey-making-custom-theme-default-colors-is-fun-but-lets-automate-these-update-builds.png\" alt=\"Hey, making custom theme default colors is fun, but lets automate these updates with Node Package Manager builds. \" class=\"wp-image-9516\" srcset=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Hey-making-custom-theme-default-colors-is-fun-but-lets-automate-these-update-builds.png 516w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Hey-making-custom-theme-default-colors-is-fun-but-lets-automate-these-update-builds-58x150.png 58w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><figcaption>Hey, making custom theme default colors is fun, but lets automate these updates with Node Package Manager builds. <\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Let&#8217;s Automate Script Rebuilds in Local WordPress Development Environment using Node Package Manager (NPM)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted to automate rebuilds upon changes made to JavaScript files in my local WordPress development environment&#8211;that way I can see the effect of every little change to my code in real time. But trying to get the build command to work was only producing errors, like <code>\"wp-scripts is not recognized as an internal or external command\"<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Good YouTube Tutorial for setting up NPM local WordPress dev environment refreshing:<\/h2>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"3. Gutenberg from Scratch: NPM Build Setup for Gutenberg\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/jwIpsW3UoUI?list=PLriKzYyLb28lHhftzU7Z_DJ32mvLy4KKH\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption> <a href=\"https:\/\/www.youtube.com\/watch?v=jwIpsW3UoUI&amp;list=PLriKzYyLb28lHhftzU7Z_DJ32mvLy4KKH&amp;index=4\">https:\/\/www.youtube.com\/watch?v=jwIpsW3UoUI&amp;list=PLriKzYyLb28lHhftzU7Z_DJ32mvLy4KKH&amp;index=4<\/a> <\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I was enabling Node auto builds for a local WordPress install per this nice YouTube tutorial. But it wasn&#8217;t working until I tried: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>add <span style=\"font-size: 16px;\"><code>\"@wordpress\/scripts\":&nbsp;\"^3.1.0\",<\/code><\/span> to the <code>\"DevDependencies{}\"<\/code> section of the <code>package.json<\/code> file, <\/li><li>and then re-run the <code>npm run build:scripts<\/code> command from terminal.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"844\" height=\"734\" loading=\"lazy\" src=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE.png\" alt=\"PACKAGE JSON FILE FOR WORDPRESS LOCAL DEVELOPMENT-ERROR MESSAGE\" class=\"wp-image-9514\" srcset=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE.png 844w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-150x130.png 150w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-600x522.png 600w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><figcaption>PACKAGE JSON FILE FOR WORDPRESS LOCAL DEVELOPMENT-ERROR MESSAGE<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I don&#8217;t know why my <code>package.json<\/code> file was missing that particular <code>devDependency<\/code>, but it was. If that didn&#8217;t fix it for you, try running the:  <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><code>npm audit fix<\/code> command from terminal, <\/li><li>then close your text editor (after it&#8217;s done auditing), restart it, <\/li><li>try running  <code>npm run build:scripts<\/code> again to see if it works. <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"619\" height=\"635\" loading=\"lazy\" src=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-2.png\" alt=\"PACKAGE JSON FILE FOR WORDPRESS LOCAL DEVELOPMENT-ERROR MESSAGE 2\" class=\"wp-image-9515\" srcset=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-2.png 619w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-2-146x150.png 146w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/PACKAGE-JSON-FILE-FOR-WORDPRESS-LOCAL-DEVELOPMENT-ERROR-MESSAGE-2-600x616.png 600w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><figcaption>PACKAGE JSON FILE FOR WORDPRESS LOCAL DEVELOPMENT-ERROR MESSAGE 2<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If that doesn&#8217;t do it, I&#8217;m out of ideas, Sorry!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"768\" height=\"632\" loading=\"lazy\" src=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Node-Package-Manager-auto-build-for-wordpress-local-dev-environment-NOT-erroring-out.png\" alt=\"Node Package Manager auto build for wordpress local dev environment NOT erroring out\" class=\"wp-image-9518\" srcset=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Node-Package-Manager-auto-build-for-wordpress-local-dev-environment-NOT-erroring-out.png 768w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Node-Package-Manager-auto-build-for-wordpress-local-dev-environment-NOT-erroring-out-150x123.png 150w, https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/Node-Package-Manager-auto-build-for-wordpress-local-dev-environment-NOT-erroring-out-600x494.png 600w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>Node Package Manager auto build for wordpress local dev environment NOT erroring out<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &#8220;wp-scripts is not recognized as an internal or external command.&#8221; Try adding this line to your Package.json file to fix it.<\/p>\n","protected":false},"author":1,"featured_media":9513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","om_disable_all_campaigns":false,"inline_featured_image":false,"kt_blocks_editor_width":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[4],"tags":[777,779,778,775,776,240,773,772],"class_list":["post-9497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-designer","tag-automation","tag-cli","tag-json","tag-npm","tag-node","tag-wordpress","tag-code","tag-web-development"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kris Bunda\"\/>\n\t<meta name=\"google-site-verification\" content=\"nClePLp4QbLXXv7FON_y2QT65NP7LibU8DWgB3TaPyY\" \/>\n\t<meta name=\"msvalidate.01\" content=\"D9A2CA8C318137423BE8EC5CD4C5DBBE\" \/>\n\t<meta name=\"p:domain_verify\" content=\"6096666fee42f7673dae5027429ae8fd\" \/>\n\t<meta name=\"keywords\" content=\"automation,cli,json,npm,node,wordpress,code,web development\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Kris Bunda Design\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design\" \/>\n\t\t<meta property=\"og:description\" content=\"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t\t<meta property=\"article:tag\" content=\"automation\" \/>\n\t\t<meta property=\"article:tag\" content=\"cli\" \/>\n\t\t<meta property=\"article:tag\" content=\"json\" \/>\n\t\t<meta property=\"article:tag\" content=\"npm\" \/>\n\t\t<meta property=\"article:tag\" content=\"node\" \/>\n\t\t<meta property=\"article:tag\" content=\"wordpress\" \/>\n\t\t<meta property=\"article:tag\" content=\"code\" \/>\n\t\t<meta property=\"article:tag\" content=\"web development\" \/>\n\t\t<meta property=\"article:tag\" content=\"designer\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-01T06:25:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-11T21:10:53+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@KrisBunda3D\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@KrisBunda3D\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Kris Bunda\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#article\",\"name\":\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design\",\"headline\":\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment\",\"author\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/author\\\/kris-bunda\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out.png\",\"width\":1200,\"height\":675},\"datePublished\":\"2019-10-01T01:25:03-05:00\",\"dateModified\":\"2019-10-11T16:10:53-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#webpage\"},\"articleSection\":\"Designer, Automation, CLI, JSON, NPM, Node, WordPress, code, web development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/krisbunda.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/category\\\/designer\\\/#listItem\",\"name\":\"Designer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/category\\\/designer\\\/#listItem\",\"position\":2,\"name\":\"Designer\",\"item\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/category\\\/designer\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#listItem\",\"name\":\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#listItem\",\"position\":3,\"name\":\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/category\\\/designer\\\/#listItem\",\"name\":\"Designer\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/#person\",\"name\":\"Kris Bunda\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0dea2176fcad4070f74ce4ee1a63460edd0cc3017656f3a98fa152e791f87b55?s=96&d=mm&r=r\",\"width\":96,\"height\":96,\"caption\":\"Kris Bunda\"},\"sameAs\":[\"@KrisBunda3D\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/author\\\/kris-bunda\\\/#author\",\"url\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/author\\\/kris-bunda\\\/\",\"name\":\"Kris Bunda\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0dea2176fcad4070f74ce4ee1a63460edd0cc3017656f3a98fa152e791f87b55?s=96&d=mm&r=r\",\"width\":96,\"height\":96,\"caption\":\"Kris Bunda\"},\"sameAs\":[\"@KrisBunda3D\"]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#webpage\",\"url\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/\",\"name\":\"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design\",\"description\":\"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like \\\"wp-scripts is not recognized as an internal or external command.\\\" Try adding this line to your Package.json file to fix it.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/author\\\/kris-bunda\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/author\\\/kris-bunda\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out.png\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#mainImage\",\"width\":1200,\"height\":675},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/2019\\\/10\\\/01\\\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\\\/#mainImage\"},\"datePublished\":\"2019-10-01T01:25:03-05:00\",\"dateModified\":\"2019-10-11T16:10:53-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/\",\"name\":\"Kris Bunda Design\",\"description\":\"Creative Development & Technical How-Tos\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/krisbunda.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design","description":"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like \"wp-scripts is not recognized as an internal or external command.\" Try adding this line to your Package.json file to fix it.","canonical_url":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/","robots":"max-image-preview:large","keywords":"automation,cli,json,npm,node,wordpress,code,web development","webmasterTools":{"google-site-verification":"nClePLp4QbLXXv7FON_y2QT65NP7LibU8DWgB3TaPyY","msvalidate.01":"D9A2CA8C318137423BE8EC5CD4C5DBBE","p:domain_verify":"6096666fee42f7673dae5027429ae8fd","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#article","name":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design","headline":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment","author":{"@id":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/#author"},"publisher":{"@id":"https:\/\/krisbunda.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out.png","width":1200,"height":675},"datePublished":"2019-10-01T01:25:03-05:00","dateModified":"2019-10-11T16:10:53-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#webpage"},"isPartOf":{"@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#webpage"},"articleSection":"Designer, Automation, CLI, JSON, NPM, Node, WordPress, code, web development"},{"@type":"BreadcrumbList","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/krisbunda.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog\/category\/designer\/#listItem","name":"Designer"}},{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog\/category\/designer\/#listItem","position":2,"name":"Designer","item":"https:\/\/krisbunda.com\/blog\/category\/designer\/","nextItem":{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#listItem","name":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment"},"previousItem":{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#listItem","position":3,"name":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment","previousItem":{"@type":"ListItem","@id":"https:\/\/krisbunda.com\/blog\/category\/designer\/#listItem","name":"Designer"}}]},{"@type":"Person","@id":"https:\/\/krisbunda.com\/blog\/#person","name":"Kris Bunda","image":{"@type":"ImageObject","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/0dea2176fcad4070f74ce4ee1a63460edd0cc3017656f3a98fa152e791f87b55?s=96&d=mm&r=r","width":96,"height":96,"caption":"Kris Bunda"},"sameAs":["@KrisBunda3D"]},{"@type":"Person","@id":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/#author","url":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/","name":"Kris Bunda","image":{"@type":"ImageObject","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0dea2176fcad4070f74ce4ee1a63460edd0cc3017656f3a98fa152e791f87b55?s=96&d=mm&r=r","width":96,"height":96,"caption":"Kris Bunda"},"sameAs":["@KrisBunda3D"]},{"@type":"WebPage","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#webpage","url":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/","name":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design","description":"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like \"wp-scripts is not recognized as an internal or external command.\" Try adding this line to your Package.json file to fix it.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/krisbunda.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#breadcrumblist"},"author":{"@id":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/#author"},"creator":{"@id":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out.png","@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#mainImage","width":1200,"height":675},"primaryImageOfPage":{"@id":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/#mainImage"},"datePublished":"2019-10-01T01:25:03-05:00","dateModified":"2019-10-11T16:10:53-05:00"},{"@type":"WebSite","@id":"https:\/\/krisbunda.com\/blog\/#website","url":"https:\/\/krisbunda.com\/blog\/","name":"Kris Bunda Design","description":"Creative Development & Technical How-Tos","inLanguage":"en-US","publisher":{"@id":"https:\/\/krisbunda.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Kris Bunda Design","og:type":"article","og:title":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design","og:description":"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.","og:url":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/","og:image":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png","og:image:secure_url":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png","og:image:width":1920,"og:image:height":1080,"article:tag":["automation","cli","json","npm","node","wordpress","code","web development","designer"],"article:published_time":"2019-10-01T06:25:03+00:00","article:modified_time":"2019-10-11T21:10:53+00:00","twitter:card":"summary_large_image","twitter:site":"@KrisBunda3D","twitter:title":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment | Kris Bunda Design","twitter:description":"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.","twitter:creator":"@KrisBunda3D","twitter:image":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2021\/07\/BG-1920X1080C.png","twitter:label1":"Written by","twitter:data1":"Kris Bunda","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"9497","title":null,"description":"I wanted to automate rebuilds in my local WordPress dev environment. But the NPM build command was only producing errors like &quot;wp-scripts is not recognized as an internal or external command.&quot; Try adding this line to your Package.json file to fix it.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-07-16 06:47:40","updated":"2026-01-28 23:39:49","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/krisbunda.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/krisbunda.com\/blog\/category\/designer\/\" title=\"Designer\">Designer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTry this for NPM Build Setup Errors in Your Local WordPress Development Environment\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/krisbunda.com\/blog"},{"label":"Designer","link":"https:\/\/krisbunda.com\/blog\/category\/designer\/"},{"label":"Try this for NPM Build Setup Errors in Your Local WordPress Development Environment","link":"https:\/\/krisbunda.com\/blog\/2019\/10\/01\/try-this-for-npm-build-setup-errors-in-your-local-wordpress-development-environment\/"}],"taxonomy_info":{"category":[{"value":4,"label":"Designer"}],"post_tag":[{"value":777,"label":"Automation"},{"value":779,"label":"CLI"},{"value":778,"label":"JSON"},{"value":775,"label":"NPM"},{"value":776,"label":"Node"},{"value":240,"label":"WordPress"},{"value":773,"label":"code"},{"value":772,"label":"web development"}]},"featured_image_src_large":["https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out-1200x675.png",1200,675,true],"author_info":{"display_name":"Kris Bunda","author_link":"https:\/\/krisbunda.com\/blog\/author\/kris-bunda\/"},"comment_info":0,"category_info":[{"term_id":4,"name":"Designer","slug":"designer","term_group":0,"term_taxonomy_id":4,"taxonomy":"category","description":"Posts focusing on web, graphic, CAD, and other design.","parent":0,"count":91,"filter":"raw","cat_ID":4,"category_count":91,"category_description":"Posts focusing on web, graphic, CAD, and other design.","cat_name":"Designer","category_nicename":"designer","category_parent":0}],"tag_info":[{"term_id":777,"name":"Automation","slug":"automation","term_group":0,"term_taxonomy_id":781,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":779,"name":"CLI","slug":"cli","term_group":0,"term_taxonomy_id":783,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":778,"name":"JSON","slug":"json","term_group":0,"term_taxonomy_id":782,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":775,"name":"NPM","slug":"npm","term_group":0,"term_taxonomy_id":779,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":776,"name":"Node","slug":"node","term_group":0,"term_taxonomy_id":780,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":240,"name":"WordPress","slug":"wordpress","term_group":0,"term_taxonomy_id":240,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"},{"term_id":773,"name":"code","slug":"code","term_group":0,"term_taxonomy_id":777,"taxonomy":"post_tag","description":"","parent":0,"count":4,"filter":"raw"},{"term_id":772,"name":"web development","slug":"web-development","term_group":0,"term_taxonomy_id":776,"taxonomy":"post_tag","description":"","parent":0,"count":5,"filter":"raw"}],"jetpack_featured_media_url":"https:\/\/krisbunda.com\/blog\/wp-content\/uploads\/2019\/10\/cropped-cover-NPM-auto-build-for-wordpress-local-dev-environment-erroring-out.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/posts\/9497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/comments?post=9497"}],"version-history":[{"count":14,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/posts\/9497\/revisions"}],"predecessor-version":[{"id":9560,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/posts\/9497\/revisions\/9560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/media\/9513"}],"wp:attachment":[{"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/media?parent=9497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/categories?post=9497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/krisbunda.com\/blog\/wp-json\/wp\/v2\/tags?post=9497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}