title: Angular 9 upgrade from 8 - Package '-y' is not a dependency
body: <p>I am <strong>upgrading</strong> my application from <strong>Angular 8 to 9</strong>. I used the below command.</p>
  <pre><code>ng update @angular/core@9 @angular/cli@9 -allow-dirty --force
  </code></pre>
  <p>I am getting <strong>Package '-y' is not a dependency</strong> <strong>error message</strong>, I don't know what is wrong.</p>
  <p><em>Attached screenshot for your reference</em>.</p>
  <p><strong>Screenshot</strong></p>
  <p><a href="https://i.stack.imgur.com/ISe1V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ISe1V.png" alt="enter image description here" /></a></p>
  <p><strong>package.json</strong> file</p>
  <pre><code>{
    &quot;name&quot;: &quot;xxxx&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;build&quot;: &quot;npm run env -s &amp;&amp; ng build --prod&quot;,
      &quot;start&quot;: &quot;npm run env -s &amp;&amp; ng serve --aot --proxy-config proxy.conf.js&quot;,
      &quot;serve:sw&quot;: &quot;npm run build -s &amp;&amp; npx http-server ./dist -p 4200&quot;,
      &quot;lint&quot;: &quot;ng lint &amp;&amp; stylelint \&quot;src/**/*.scss\&quot; --syntax scss &amp;&amp; htmlhint \&quot;src\&quot; --config .htmlhintrc&quot;,
      &quot;test&quot;: &quot;npm run env -s &amp;&amp; ng test&quot;,
      &quot;test:ci&quot;: &quot;npm run env -s &amp;&amp; npm run lint -s &amp;&amp; ng test --code-coverage --watch=false&quot;,
      &quot;e2e&quot;: &quot;npm run env -s &amp;&amp; ng e2e&quot;,
      &quot;translations:extract&quot;: &quot;ngx-translate-extract --input ./src --output ./src/translations/template.json --format=json --clean -sort --marker extract&quot;,
      &quot;docs&quot;: &quot;hads ./docs -o&quot;,
      &quot;env&quot;: &quot;ngx-scripts env npm_package_version&quot;,
      &quot;prettier&quot;: &quot;prettier --write \&quot;./{src,e2e}/**/*.{ts,js,scss}\&quot;&quot;,
      &quot;prettier:check&quot;: &quot;prettier --list-different \&quot;./{src,e2e}/**/*.{ts,js,scss}\&quot;&quot;,
      &quot;postinstall&quot;: &quot;npm run prettier -s&quot;,
      &quot;precommit&quot;: &quot;pretty-quick --staged&quot;,
      &quot;generate&quot;: &quot;ng generate&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/cdk&quot;: &quot;^8.2.2&quot;,
      &quot;@angular/common&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/compiler&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/core&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/flex-layout&quot;: &quot;^8.0.0-beta.27&quot;,
      &quot;@angular/forms&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/material&quot;: &quot;^8.2.3&quot;,
      &quot;@angular/platform-browser&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/router&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/service-worker&quot;: &quot;^8.2.14&quot;,
      &quot;@fortawesome/fontawesome-free-webfonts&quot;: &quot;^1.0.9&quot;,
      &quot;@ng-bootstrap/ng-bootstrap&quot;: &quot;^3.3.1&quot;,
      &quot;@ngx-translate/core&quot;: &quot;^10.0.1&quot;,
      &quot;@progress/kendo-angular-common&quot;: &quot;^1.2.1&quot;,
      &quot;@progress/kendo-angular-dropdowns&quot;: &quot;^4.2.2&quot;,
      &quot;@progress/kendo-angular-l10n&quot;: &quot;^2.0.0&quot;,
      &quot;@progress/kendo-angular-popup&quot;: &quot;^3.0.3&quot;,
      &quot;angular-archwizard&quot;: &quot;^5.0.0&quot;,
      &quot;angular-user-idle&quot;: &quot;^2.2.2&quot;,
      &quot;angular2-notifications&quot;: &quot;^2.0.0&quot;,
      &quot;angular5-csv&quot;: &quot;^0.2.11&quot;,
      &quot;bootstrap&quot;: &quot;^4.1.1&quot;,
      &quot;core-js&quot;: &quot;^2.5.6&quot;,
      &quot;font-awesome&quot;: &quot;^4.7.0&quot;,
      &quot;highcharts&quot;: &quot;^8.0.0&quot;,
      &quot;jquery&quot;: &quot;^3.4.1&quot;,
      &quot;lodash&quot;: &quot;^4.17.10&quot;,
      &quot;mat-table-exporter&quot;: &quot;^1.2.5&quot;,
      &quot;ng-multiselect-dropdown&quot;: &quot;0.2.3&quot;,
      &quot;ng2-toastr&quot;: &quot;^4.1.2&quot;,
      &quot;ng6-toastr-notifications&quot;: &quot;^1.0.4&quot;,
      &quot;ngx-pagination&quot;: &quot;^4.1.0&quot;,
      &quot;ngx-perfect-scrollbar&quot;: &quot;^8.0.0&quot;,
      &quot;ngx-select-dropdown&quot;: &quot;^1.2.1&quot;,
      &quot;ngx-select-ex&quot;: &quot;^3.7.3&quot;,
      &quot;ngx-toastr&quot;: &quot;^10.1.0&quot;,
      &quot;ngx-ui-loader&quot;: &quot;^7.2.2&quot;,
      &quot;rxjs&quot;: &quot;^6.6.3&quot;,
      &quot;rxjs-compat&quot;: &quot;^6.5.3&quot;,
      &quot;save&quot;: &quot;^2.4.0&quot;,
      &quot;slavede-ng-dual-list-box&quot;: &quot;^1.1.5&quot;,
      &quot;zone.js&quot;: &quot;^0.9.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.803.24&quot;,
      &quot;@angular/cli&quot;: &quot;~8.3.29&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/language-service&quot;: &quot;^8.2.14&quot;,
      &quot;@biesbjerg/ngx-translate-extract&quot;: &quot;^2.3.4&quot;,
      &quot;@ngx-rocket/scripts&quot;: &quot;^3.0.0&quot;,
      &quot;@types/jasmine&quot;: &quot;^2.8.7&quot;,
      &quot;@types/jasminewd2&quot;: &quot;^2.0.2&quot;,
      &quot;@types/lodash&quot;: &quot;^4.14.108&quot;,
      &quot;@types/node&quot;: &quot;^8.10.13&quot;,
      &quot;codelyzer&quot;: &quot;^4.4.4&quot;,
      &quot;hads&quot;: &quot;^1.7.0&quot;,
      &quot;htmlhint&quot;: &quot;^0.10.0&quot;,
      &quot;https-proxy-agent&quot;: &quot;^2.0.0&quot;,
      &quot;husky&quot;: &quot;^0.14.3&quot;,
      &quot;jasmine-core&quot;: &quot;~2.99.1&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;^4.1.0&quot;,
      &quot;karma&quot;: &quot;~3.0.0&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;^2.2.0&quot;,
      &quot;karma-cli&quot;: &quot;~1.0.1&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;^2.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;^1.1.2&quot;,
      &quot;karma-junit-reporter&quot;: &quot;^1.2.0&quot;,
      &quot;node-sass&quot;: &quot;^4.13.0&quot;,
      &quot;prettier&quot;: &quot;^1.14.0&quot;,
      &quot;pretty-quick&quot;: &quot;^1.6.0&quot;,
      &quot;protractor&quot;: &quot;~5.4.0&quot;,
      &quot;rebuild-node-sass&quot;: &quot;^1.1.0&quot;,
      &quot;stylelint&quot;: &quot;~9.6.0&quot;,
      &quot;stylelint-config-prettier&quot;: &quot;^4.0.0&quot;,
      &quot;stylelint-config-recommended-scss&quot;: &quot;~3.2.0&quot;,
      &quot;stylelint-config-standard&quot;: &quot;~18.2.0&quot;,
      &quot;stylelint-scss&quot;: &quot;~3.3.0&quot;,
      &quot;ts-node&quot;: &quot;~7.0.1&quot;,
      &quot;tslint&quot;: &quot;~5.11.0&quot;,
      &quot;tslint-config-prettier&quot;: &quot;^1.14.0&quot;,
      &quot;typescript&quot;: &quot;~3.5.3&quot;
    },
    &quot;prettier&quot;: {
      &quot;singleQuote&quot;: true,
      &quot;overrides&quot;: [
        {
          &quot;files&quot;: &quot;*.scss&quot;,
          &quot;options&quot;: {
            &quot;singleQuote&quot;: false
          }
        }
      ]
    }
  }
  </code></pre>
  <p>If you need anything other than package.json file, please let me know</p>
  <p>Someone, please help me out.</p>