{"id":2312,"date":"2018-03-05T20:10:24","date_gmt":"2018-03-05T14:40:24","guid":{"rendered":"http:\/\/stepbystepschools.net\/?p=2312"},"modified":"2018-03-05T20:10:24","modified_gmt":"2018-03-05T14:40:24","slug":"webpack-updates-webpack-cli-and-git-installation-angular-training-in-mumbai","status":"publish","type":"post","link":"https:\/\/www.stepbystepschools.net\/?p=2312","title":{"rendered":"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai."},"content":{"rendered":"<p>Due to recent webpack changes I suddenly had issues with the new webpack environment. My \u201cnpm install webpack -g\u201d was not successful.<\/p>\n<p>But when we try to run \u201cwebpack\u201d from command prompt it gave the below error as webpack team has moved things in to \u201cwebpack-cli\u201d.<\/p>\n<pre><i>C:\\Users\\SHIV\\Documents\\Visual Studio 2017\\Projects\\WebApplication30\\WebApplication30>webpack\r\nThe CLI moved into a separate package: webpack-cli.\r\n<b>Please install 'webpack-cli'<\/b> in addition to webpack itself to use the CLI.\r\n-> When using npm: npm install webpack-cli -D\r\n-> When using yarn: yarn add webpack-cli -D\r\n<\/i><\/pre>\n<p>So I tried using \u201cnpm install webpack-cli -g\u201d and I got some other error &#128522;. The error stated \u201cgit\u201d was not installed.<\/p>\n<pre><i>C:\\Users\\SHIV\\Documents\\Visual Studio 2017\\Projects\\WebApplication30\\WebApplication30>npm install webpack-cli -g\r\nnpm ERR! code ENOGIT\r\nnpm ERR! No git binary found in $PATH\r\nnpm ERR!\r\nnpm ERR! Failed using git.\r\nnpm ERR! <b>Please check if you have git installed and in your PATH<\/b>.\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\\Users\\SHIV\\AppData\\Roaming\\npm-cache\\_logs\\2018-03-05T09_16_50_359Z-debug.log\r\n<\/i><\/pre>\n<p>So looking at that error I then installed <a target=\"_blank\" href=\"https:\/\/gitforwindows.org\/\">https:\/\/gitforwindows.org\/<\/a> and THEN RESTARTED BY COMMAND CONSOLE and below is the happy image of webpack-cli installation.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png\" rel=\"attachment wp-att-2313\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png\" alt=\"1\" width=\"462\" height=\"199\" class=\"aligleft size-full wp-image-2313\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png 462w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3-300x129.png 300w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><br \/>\n<\/p>\n<p>Finally  wasable to run webpack-cli command and the chunks where created like a charm.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/2-3.png\" rel=\"attachment wp-att-2314\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/2-3.png\" alt=\"2\" width=\"623\" height=\"325\" class=\"aligncenter size-full wp-image-2314\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/03\/2-3.png 623w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/03\/2-3-300x157.png 300w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/a><\/p>\n<p>Please note you also need to install node types by firing \u201cnpm install @types\/node\u201d.<\/p>\n<p>Happy learning. Learn every day 1 hour and see how you grow. I take Angular training every week Sat and Sunday in Andheri Mumbai sakinaka. If interested you can check out the Angular syllabus from here <a target=\"_blank\" href=\"http:\/\/stepbystepschools.net\/?page_id=622\">http:\/\/stepbystepschools.net\/?page_id=622<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to recent webpack changes I suddenly had issues with the new webpack environment. My \u201cnpm install webpack -g\u201d was not successful. But when we try to run \u201cwebpack\u201d from command prompt it gave the below error as webpack team &hellip; <a href=\"https:\/\/www.stepbystepschools.net\/?p=2312\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[49,1],"tags":[231,230,229],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai<\/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.stepbystepschools.net\/?p=2312\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"og:description\" content=\"Due to recent webpack changes I suddenly had issues with the new webpack environment. My \u201cnpm install webpack -g\u201d was not successful. But when we try to run \u201cwebpack\u201d from command prompt it gave the below error as webpack team &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stepbystepschools.net\/?p=2312\" \/>\n<meta property=\"og:site_name\" content=\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-05T14:40:24+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"StepByStepSchoolsSupport\" \/>\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\":\"WebSite\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\",\"url\":\"https:\/\/www.stepbystepschools.net\/\",\"name\":\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"description\":\"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stepbystepschools.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2312#primaryimage\",\"url\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png\",\"contentUrl\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2312#webpage\",\"url\":\"https:\/\/www.stepbystepschools.net\/?p=2312\",\"name\":\"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"isPartOf\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2312#primaryimage\"},\"datePublished\":\"2018-03-05T14:40:24+00:00\",\"dateModified\":\"2018-03-05T14:40:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2312#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stepbystepschools.net\/?p=2312\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2312#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stepbystepschools.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai.\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\",\"name\":\"StepByStepSchoolsSupport\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"caption\":\"StepByStepSchoolsSupport\"},\"url\":\"https:\/\/www.stepbystepschools.net\/?author=40\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","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.stepbystepschools.net\/?p=2312","og_locale":"en_US","og_type":"article","og_title":"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","og_description":"Due to recent webpack changes I suddenly had issues with the new webpack environment. My \u201cnpm install webpack -g\u201d was not successful. But when we try to run \u201cwebpack\u201d from command prompt it gave the below error as webpack team &hellip; Continue reading &rarr;","og_url":"https:\/\/www.stepbystepschools.net\/?p=2312","og_site_name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","article_published_time":"2018-03-05T14:40:24+00:00","og_image":[{"url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"StepByStepSchoolsSupport","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.stepbystepschools.net\/#website","url":"https:\/\/www.stepbystepschools.net\/","name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","description":"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stepbystepschools.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/?p=2312#primaryimage","url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png","contentUrl":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/03\/1-3.png"},{"@type":"WebPage","@id":"https:\/\/www.stepbystepschools.net\/?p=2312#webpage","url":"https:\/\/www.stepbystepschools.net\/?p=2312","name":"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","isPartOf":{"@id":"https:\/\/www.stepbystepschools.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2312#primaryimage"},"datePublished":"2018-03-05T14:40:24+00:00","dateModified":"2018-03-05T14:40:24+00:00","author":{"@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655"},"breadcrumb":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2312#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stepbystepschools.net\/?p=2312"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.stepbystepschools.net\/?p=2312#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stepbystepschools.net\/"},{"@type":"ListItem","position":2,"name":"Webpack updates, webpack-cli and git installation \u2013 Angular training in Mumbai."}]},{"@type":"Person","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655","name":"StepByStepSchoolsSupport","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","caption":"StepByStepSchoolsSupport"},"url":"https:\/\/www.stepbystepschools.net\/?author=40"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2312"}],"collection":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2312"}],"version-history":[{"count":4,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2312\/revisions"}],"predecessor-version":[{"id":2318,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2312\/revisions\/2318"}],"wp:attachment":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}