title: Can not run ng build
body: <h2>Problem</h2>
  <p>When I run <code>ng build</code> to generate dist folder in project, it show <strong>No projects support the 'build' target.</strong>
  <a href="https://i.stack.imgur.com/sk4HK.png" rel="nofollow noreferrer">Capture error</a></p>
  <h2>Project Environment</h2>
  <pre><code>angular: 2  
  angular-cli: 1.0.0-beta.18  
  node: 6.0.0
  </code></pre>
  <h2>Local Environment</h2>
  <pre><code>Angular CLI: 13.0.1
  Node: 16.13.0
  Package Manager: npm 8.1.0
  OS: win32 x64
  
  Angular: 2.4.9
  </code></pre>
  <h2>Package.json</h2>
  <pre><code>{
    &quot;name&quot;: &quot;EDelivery&quot;,
    &quot;version&quot;: &quot;2.7.0&quot;,
    &quot;license&quot;: &quot;Wrapbootstrap&quot;,
    &quot;angular-cli&quot;: {},
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build &amp;&amp; nodemon server.js&quot;,
      &quot;lint&quot;: &quot;tslint \&quot;public/**/*.ts\&quot;&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;pree2e&quot;: &quot;webdriver-manager update&quot;,
      &quot;e2e&quot;: &quot;protractor&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular/common&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/compiler&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/core&quot;: &quot;^2.4.1&quot;,
      &quot;@angular/forms&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/http&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~2.4.1&quot;,
      &quot;@angular/router&quot;: &quot;~3.1.0&quot;,
      &quot;@ngui/sortable&quot;: &quot;^0.4.1&quot;,
      &quot;@types/moment&quot;: &quot;^2.13.0&quot;,
      &quot;@types/moment-timezone&quot;: &quot;^0.5.3&quot;,
      &quot;angular-calendar&quot;: &quot;^0.25.2&quot;,
      &quot;angular2-auth&quot;: &quot;^0.1.7&quot;,
      &quot;angular2-google-maps&quot;: &quot;^0.17.0&quot;,
      &quot;angular2-ladda&quot;: &quot;^1.1.1&quot;,
      &quot;angular2-moment&quot;: &quot;^1.7.1&quot;,
      &quot;angular2-select&quot;: &quot;^1.0.0-beta.2&quot;,
      &quot;angular2-tag-input&quot;: &quot;^1.2.3&quot;,
      &quot;angular2-ui-switch&quot;: &quot;^1.2.0&quot;,
      &quot;angular2-useful-swiper&quot;: &quot;^4.0.5&quot;,
      &quot;angular2-uuid&quot;: &quot;^1.1.1&quot;,
      &quot;animate.css&quot;: &quot;3.1.1&quot;,
      &quot;ap-angular2-fullcalendar&quot;: &quot;^1.6.4&quot;,
      &quot;apn&quot;: &quot;^2.2.0&quot;,
      &quot;async&quot;: &quot;^2.1.2&quot;,
      &quot;body-parser&quot;: &quot;^1.15.2&quot;,
      &quot;bootstrap&quot;: &quot;^3.3.7&quot;,
      &quot;chart.js&quot;: &quot;^2.7.1&quot;,
      &quot;cluster&quot;: &quot;^0.7.7&quot;,
      &quot;compress-images&quot;: &quot;^1.1.8&quot;,
      &quot;compression&quot;: &quot;^1.6.2&quot;,
      &quot;connect-redis&quot;: &quot;^3.1.0&quot;,
      &quot;cookie-parser&quot;: &quot;^1.4.3&quot;,
      &quot;core-js&quot;: &quot;^2.4.1&quot;,
      &quot;countries-and-timezones&quot;: &quot;^1.0.0&quot;,
      &quot;country-data&quot;: &quot;0.0.31&quot;,
      &quot;currency-symbol-map&quot;: &quot;^3.1.0&quot;,
      &quot;express&quot;: &quot;^4.10.7&quot;,
      &quot;express-session&quot;: &quot;^1.14.2&quot;,
      &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
      &quot;geolib&quot;: &quot;^2.0.24&quot;,
      &quot;jquery&quot;: &quot;^3.1.0&quot;,
      &quot;jsontocsv&quot;: &quot;^0.3.0&quot;,
      &quot;jspdf&quot;: &quot;^1.3.5&quot;,
      &quot;le-challenge-fs&quot;: &quot;^2.0.8&quot;,
      &quot;le-store-certbot&quot;: &quot;^2.0.3&quot;,
      &quot;letsencrypt-express&quot;: &quot;^2.0.5&quot;,
      &quot;logger&quot;: &quot;0.0.1&quot;,
      &quot;metismenu&quot;: &quot;^2.5.0&quot;,
      &quot;moment&quot;: &quot;^2.20.1&quot;,
      &quot;moment-timezone&quot;: &quot;^0.5.14&quot;,
      &quot;mongodb-backup&quot;: &quot;^1.6.9&quot;,
      &quot;mongodb-restore&quot;: &quot;^1.6.2&quot;,
      &quot;mongoose&quot;: &quot;^4.13.17&quot;,
      &quot;mongoose-auto-increment&quot;: &quot;^5.0.1&quot;,
      &quot;mongoose-pages&quot;: &quot;0.0.3&quot;,
      &quot;mongoose-paginate&quot;: &quot;^5.0.3&quot;,
      &quot;multer&quot;: &quot;^1.2.0&quot;,
      &quot;mydatepicker&quot;: &quot;^1.7.4&quot;,
      &quot;ng2-bs3-modal&quot;: &quot;^0.10.4&quot;,
      &quot;ng2-charts&quot;: &quot;^1.6.0&quot;,
      &quot;ng2-dropdown&quot;: &quot;0.0.21&quot;,
      &quot;ng2-google-place-autocomplete&quot;: &quot;^1.4.2&quot;,
      &quot;ng2-img-cropper&quot;: &quot;^0.9.0&quot;,
      &quot;ng2-notifications&quot;: &quot;^0.3.0&quot;,
      &quot;ng2-overlay&quot;: &quot;^0.7.0&quot;,
      &quot;ng2-owl-carousel&quot;: &quot;^0.1.15&quot;,
      &quot;ng2-password-strength-bar&quot;: &quot;^1.0.1&quot;,
      &quot;ng2-popup&quot;: &quot;^0.4.0&quot;,
      &quot;ng2-select&quot;: &quot;^1.2.0&quot;,
      &quot;ng2-tag-input&quot;: &quot;^0.8.5&quot;,
      &quot;ng2-toastr&quot;: &quot;^1.6.0&quot;,
      &quot;ng2-translate&quot;: &quot;^5.0.0&quot;,
      &quot;ng2-twitter&quot;: &quot;^0.3.0&quot;,
      &quot;ng2-ui-sortable&quot;: &quot;^0.3.0&quot;,
      &quot;ng2-validation&quot;: &quot;^4.2.0&quot;,
      &quot;ngx-facebook&quot;: &quot;^2.4.0&quot;,
      &quot;ngx-rating&quot;: &quot;0.0.9&quot;,
      &quot;ngx-tooltip&quot;: &quot;0.0.9&quot;,
      &quot;node-cache&quot;: &quot;^4.1.0&quot;,
      &quot;node-currency-swap&quot;: &quot;^1.0.6&quot;,
      &quot;node-gcm&quot;: &quot;^0.14.4&quot;,
      &quot;node-schedule&quot;: &quot;^1.2.0&quot;,
      &quot;nodemailer&quot;: &quot;^2.6.4&quot;,
      &quot;nodemon&quot;: &quot;^1.11.0&quot;,
      &quot;owl.carousel&quot;: &quot;^2.2.0&quot;,
      &quot;pad-left&quot;: &quot;^2.1.0&quot;,
      &quot;randomstring&quot;: &quot;^1.1.5&quot;,
      &quot;redis&quot;: &quot;^2.6.3&quot;,
      &quot;rxjs&quot;: &quot;5.0.0-beta.12&quot;,
      &quot;stripe&quot;: &quot;^4.14.0&quot;,
      &quot;sweetalert2&quot;: &quot;^6.3.8&quot;,
      &quot;textversionjs&quot;: &quot;^1.0.2&quot;,
      &quot;togeojson&quot;: &quot;^0.16.0&quot;,
      &quot;ts-helpers&quot;: &quot;^1.1.1&quot;,
      &quot;twilio&quot;: &quot;^2.11.1&quot;,
      &quot;typescript&quot;: &quot;^2.0.10&quot;,
      &quot;typescript-require&quot;: &quot;^0.2.9-1&quot;,
      &quot;xmldom&quot;: &quot;^0.1.27&quot;,
      &quot;zone.js&quot;: &quot;^0.6.23&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/googlemaps&quot;: &quot;^3.26.2&quot;,
      &quot;@types/jasmine&quot;: &quot;^2.2.30&quot;,
      &quot;@types/node&quot;: &quot;^6.0.42&quot;,
      &quot;angular-cli&quot;: &quot;1.0.0-beta.18&quot;,
      &quot;codelyzer&quot;: &quot;1.0.0-beta.1&quot;,
      &quot;jasmine-core&quot;: &quot;2.4.1&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;2.5.0&quot;,
      &quot;karma&quot;: &quot;1.2.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;^2.0.0&quot;,
      &quot;karma-cli&quot;: &quot;^1.0.1&quot;,
      &quot;karma-jasmine&quot;: &quot;^1.0.2&quot;,
      &quot;karma-remap-istanbul&quot;: &quot;^0.2.1&quot;,
      &quot;protractor&quot;: &quot;4.0.9&quot;,
      &quot;sw-precache&quot;: &quot;^5.2.1&quot;,
      &quot;ts-node&quot;: &quot;1.2.1&quot;,
      &quot;tslint&quot;: &quot;3.13.0&quot;,
      &quot;typescript&quot;: &quot;~2.0.3&quot;
    }
  }
  </code></pre>
  <h2>Angular-cli.json</h2>
  <pre><code>{
      &quot;project&quot;: {
          &quot;version&quot;: &quot;2.7.0&quot;,
          &quot;name&quot;: &quot;EDelivery&quot;
      },
      &quot;apps&quot;: [
          {
              &quot;root&quot;: &quot;public&quot;,
              &quot;outDir&quot;: &quot;dist&quot;,
              &quot;assets&quot;: [
                  &quot;assets&quot;,
                  &quot;favicon.ico&quot;
              ],
              &quot;index&quot;: &quot;index.html&quot;,
              &quot;main&quot;: &quot;main.ts&quot;,
              &quot;test&quot;: &quot;test.ts&quot;,
              &quot;tsconfig&quot;: &quot;tsconfig.json&quot;,
              &quot;prefix&quot;: &quot;app&quot;,
              &quot;mobile&quot;: false,
              &quot;styles&quot;: [
                  &quot;assets/styles/bootstrap.css&quot;,
                  &quot;../node_modules/font-awesome/css/font-awesome.css&quot;,
                  &quot;../node_modules/sweetalert2/dist/sweetalert2.css&quot;,
                  &quot;assets/styles/styles.css&quot;,
                  &quot;assets/styles/newstyle.css&quot;,
                  &quot;assets/styles/chosen/bootstrap-chosen.css&quot;,
                  &quot;assets/styles/iCheck/custom.css&quot;,
                  &quot;assets/styles/animate.css&quot;,
                  &quot;../node_modules/owl.carousel/dist/assets/owl.carousel.css&quot;,
                  &quot;../node_modules/owl.carousel/dist/assets/owl.theme.default.css&quot;,
  
                  &quot;assets/styles/c3.css&quot;,
                  &quot;assets/styles/clockpicker/clockpicker.css&quot;,
                  &quot;assets/styles/steps/jquery.steps.css&quot;,
                  &quot;assets/styles/jasny/jasny-bootstrap.min.css&quot;,
                  &quot;../node_modules/ng2-toastr/bundles/ng2-toastr.min.css&quot;,
                  &quot;../node_modules/ladda/dist/ladda.min.css&quot;
              ],
              &quot;scripts&quot;: [
                  &quot;../node_modules/jquery/dist/jquery.js&quot;,
                  &quot;../node_modules/metismenu/dist/metisMenu.js&quot;,
                  &quot;../node_modules/sweetalert2/dist/sweetalert2.js&quot;,
                  &quot;../public/vendor/pace/pace.min.js&quot;,
                  &quot;../node_modules/bootstrap/dist/js/bootstrap.js&quot;,
                  &quot;assets/js/d3.js&quot;,
                  &quot;assets/js/c3.js&quot;,
                  &quot;assets/js/hammer.js&quot;,
                  &quot;assets/js/chosen/chosen.jquery.js&quot;,
                  &quot;assets/js/iCheck/icheck.min.js&quot;,
                  &quot;assets/js/clockpicker/clockpicker.js&quot;,
                  &quot;assets/js/jasny/jasny-bootstrap.min.js&quot;,
                  &quot;assets/js/touchspin/jquery.bootstrap-touchspin.min.js&quot;
              ],
              &quot;environments&quot;: {
                  &quot;source&quot;: &quot;environments/environment.ts&quot;,
                  &quot;dev&quot;: &quot;environments/environment.ts&quot;,
                  &quot;prod&quot;: &quot;environments/environment.prod.ts&quot;
              }
          }
      ],
      &quot;addons&quot;: [],
      &quot;packages&quot;: [],
      &quot;e2e&quot;: {
          &quot;protractor&quot;: {
              &quot;config&quot;: &quot;./protractor.conf.js&quot;
          }
      },
      &quot;test&quot;: {
          &quot;karma&quot;: {
              &quot;config&quot;: &quot;./karma.conf.js&quot;
          }
      },
      &quot;defaults&quot;: {
          &quot;styleExt&quot;: &quot;css&quot;,
          &quot;prefixInterfaces&quot;: false,
          &quot;inline&quot;: {
              &quot;style&quot;: false,
              &quot;template&quot;: false
          },
          &quot;spec&quot;: {
              &quot;class&quot;: false,
              &quot;component&quot;: true,
              &quot;directive&quot;: true,
              &quot;module&quot;: false,
              &quot;pipe&quot;: true,
              &quot;service&quot;: true
          }
      }
  }
  </code></pre>
  <h2>What I tried</h2>
  <p>I have tried downgrade angular, angular-cli and node version to the same with project environment but it still show the error</p>
  <p>Thank you!</p>