Skip to content

Instantly share code, notes, and snippets.

@PhilMurwin
Created July 11, 2022 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhilMurwin/b3e753a6ec90fd36cf34c8075481ad68 to your computer and use it in GitHub Desktop.
Save PhilMurwin/b3e753a6ec90fd36cf34c8075481ad68 to your computer and use it in GitHub Desktop.
Windows Nodejs Notes

Nodejs Notes

nodejs has some oddities when used on windows, below are some notes to address them.

Warning Message

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:

  1. Open PowerShell as admin and run:
  2. Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
  3. npm install --global --production npm-windows-upgrade
  4. npm-windows-upgrade --npm-version latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment