Monday, 29 May 2023

NVM windows setup Angular and ng set up (angular/cli) - ng unable to run in windows

 install nvm using installer from 

https://github.com/coreybutler/nvm-windows#installation--upgrades



after installed, 

run nvm install lts


this will install latest stable node and npm


then to use a specific node version

do nvm list see all versions


then do nvm use xx.xx.xx

if such version does not exist, use nvm install xx.xx.xx


https://www.freecodecamp.org/news/nvm-for-windows-how-to-download-and-install-node-version-manager-in-windows-10/#howtodownloadandinstallnodeversionmanagerinwindows10


ng is angular cli cmd

to set it up :

https://stackoverflow.com/questions/37991556/ng-is-not-recognized-as-an-internal-or-external-command


npm install -g @angular/cli

-------------------

ng unable to run in windows:

  1. Open PowerShell as Adminstrator.
  2. Run:

.

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

https://stackoverflow.com/questions/58880139/electron-node-js-ng-file-path-ng-ps1-cannot-be-loaded-because-running-scri


No comments:

Post a Comment