nodejs has some oddities when used on windows, below are some notes to address them.
Message "npm WARN config global '--global','--local' are deprecated. Use '--location=global' instead"
Referencing this stackoverflow thread: https://stackoverflow.com/questions/72401421/message-npm-warn-config-global-global-local-are-deprecated-use-loc
As of July 2022:
- Open PowerShell as admin and run:
- Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
- npm install --global --production npm-windows-upgrade
- npm-windows-upgrade --npm-version latest