Skip to content

Instantly share code, notes, and snippets.

@qileq
Last active March 31, 2022 07:28
Show Gist options
  • Select an option

  • Save qileq/413893eb1bda0a6f502cd57d99fcf1b8 to your computer and use it in GitHub Desktop.

Select an option

Save qileq/413893eb1bda0a6f502cd57d99fcf1b8 to your computer and use it in GitHub Desktop.
upgrade node and npm

npm

  1. cuurent npm version: npm -v
  2. install lastest version: npm install -g npm@latest
  3. check npm version: npm -v

node

  1. current node version: node -v
  2. clean cache: sudo npm cache clean -f
  3. install n: sudo npm install -g n
  4. install lastest stable node: sudo n stable or install some specify version: sudo n 16.14.2
  5. check version: node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment