Here’s how I successfully upgraded from v0.8.18
to v0.10.20
without any other requirements like brew etc, (type these commands in the terminal):
sudo npm cache clean -f
(force) clear you npm cachesudo npm install -g n
install n (this might take a while)sudo n stable
upgrade to the current stable version
Note that sudo
might prompt your password.
Additional note regarding step 3: stable
can be exchanged for latest
, lts
(long term support) or any specific version number such as 0.10.20
.
If the version number doesn’t show up when typing node -v
, you might have to reboot.
These instructions are found here as well: davidwalsh.name/upgrade-nodejs
More info about the n package found here: npmjs.com/package/n
More info about Node.js’ release schedule: github.com/nodejs/Release
Related Posts:
- Making sure /usr/local/bin is in my $PATH on mac
- How to restart a node.js server
- Enable OpenMP support in clang in Mac OS X (sierra & Mojave)
- Upgrading Node.js to latest version
- How can I run python in terminal on a mac?
- Where to place $PATH variable assertions in zsh?
- Enable OpenMP support in clang in Mac OS X (sierra & Mojave)
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS
- Xcode is not currently available from the Software Update server
- How to view / open a calculator in mac OS X?
- Xcode is not currently available from the Software Update server
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch
- VirtualBox NS_ERROR_FAILURE (0x80004005) macOS
- Installing Homebrew on OS X
- Updating Python on Mac
- How do I upgrade to Python 3.6 with conda?
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory
- pip or pip3 to install packages for Python 3?
- How to set NODE_ENV to production/development in OS X
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- SocketException: Address already in use MONGODB
- OS X: equivalent of Linux’s wget
- Terminal error: zsh: permission denied: ./startup.sh
- Failed to attach the USB device SEGGER J-Link [0100] to the virtual machine WINDOWS 7
- You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)
- ImportError: No module named sklearn (Python)
- What’s a good hex editor/viewer for the Mac?
- OS X: equivalent of Linux’s wget
- How to change default Python version?
- What version of Python is on my Mac?
- brew install mysql on macOS
- How do you update Xcode on OSX to the latest version?
- Mongod complains that there is no /data/db folder
- How can I open the Atom editor from the command line in OS X?
- How to uninstall Docker completely from a Mac?
- mvn command not found in OSX Mavrerick
- How to easily install and uninstall docker on MacOs
- How to install wget in macOS?
- Maven Install on Mac OS X
- dyld: Library not loaded … Reason: Image not found
- How to install Java 8 on Mac
- editing PATH variable on mac
- Find (and kill) process locking port 3000 on Mac
- How to update Ruby with Homebrew?
- Install Visual Studio 2015 on mac
- Vim Can’t Save File (E212)
- Change default title in mac terminal window
- Recursively find all files that match a certain pattern
- Installing cgdb on a mac os x
- How do I update the password for Git?
- How can I install a previous version of Python 3 in macOS using homebrew?
- mvn command not found in OSX Mavrerick
- What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?
- How can I Remove .DS_Store files from a Git repository?
- Shared folder between MacOSX and Windows on Virtual Box
- VirtualBox: mount.vboxsf: mounting failed with the error: No such device
- Installing GCC on macOS Catalina
- Open an .html file with default browser using Bash on Mac
- gdb fails with “Unable to find Mach task port for process-id” error
- -bash: export: `=’: not a valid identifier
- How to use vim in the terminal?
- OS X cp command in Terminal – No such file or directory
- matplotlib: RuntimeError: Python is not installed as a framework
- Arduino IDE is not showing any port macOS
- psql: command not found Mac
- Can’t connect to MySQL server on ‘127.0.0.1’ (61) on Mac
- `node-pre-gyp install –fallback-to-build` failed during MeanJS installation on OSX
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- Python: source code string cannot contain null bytes
- Python can’t find module NLTK
- Reset MySQL root password using ALTER USER statement after install on Mac
- Mac install and open mysql using terminal
- Run script on mac prompt “Permission denied”
- Why does cURL return error “(23) Failed writing body”?
- Command not found go — on Mac after installing Go
- cannot download, $GOPATH not set
- How to install pip for Python 3 on Mac OS X?
- What is the difference between MacVim and regular Vim?
- Updating php version on mac
- Error: listen EACCES 0.0.0.0:80 OSx Node.js
- Reading syslog output on a Mac
- Failed to launch macOS app built in Xcode
- Testing web application on Mac/Safari when I don’t own a Mac
- What is the best/safest way to reinstall Homebrew?
- How to completely uninstall Android Studio on Mac?
- SQL Client for Mac OS X that works with MS SQL Server
- How do you stop MySQL on a Mac OS install?
- How can I display the current branch and folder path in terminal?
- How to navigate to to different directories in the terminal (mac)?
- Is there an equivalent of lsusb for OS X
- Where to find extensions installed folder for Google Chrome on Mac?
- hat’s a clean way to stop mongod on Mac OS X?
- How to install latest version of openssl Mac OS X El Capitan
- Mongod: Command Not Found (OS X)
- Open Sublime Text from Terminal in macOS
- how to update npm on macOS
- Unable to access MySQL after it automatically generated a temporary password
- No module named ipykernel_launcher