7

i am unable to run angular 6 CLI on node.js 6.x its showing error that upgrade minimum node.js 8.xx to use angular CLI.

i tried with this code :

npm install -g npm-windows-upgrade npm-windows-upgrade

Vaibhav Shettar
  • 790
  • 2
  • 9
  • 20

2 Answers2

11

Just download the latest version of nodejs and install it without uninstalling the previous version, the older version will be rewritten with the newer one. you wouldn't be having any compatibility issues.

HubballiHuli
  • 777
  • 7
  • 18
5

First, ensure that you can execute scripts on your system by running the following command from an elevated PowerShell. To run PowerShell as Administrator, click Start, search for PowerShell, right-click PowerShell and select Run as Administrator.

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

npm install --global --production npm-windows-upgrade
npm-windows-upgrade

Want to just install the latest version? Sure:

npm-windows-upgrade --npm-version latest
Vaibhav Shettar
  • 790
  • 2
  • 9
  • 20
  • When it do the npm-windows-upgrade, it says " async ensureInternet () SyntaxError: Unexpected identifier". – Lee Meador Jun 10 '19 at 19:33
  • I found there are version issues. Look at the bottom of this page. If you have an older version of Node, you need an older version of npm-windows-upgrade. https://github.com/felixrieseberg/npm-windows-upgrade/blob/master/README.md#older-nodejs-versions – Lee Meador Jun 10 '19 at 19:38