
#BREW UPGRADE NODE INSTALL#
If you haven’t already installed the packages… npm install To sudo or not to sudo The package.json file will also update the version numbers To upgrade major versions of npm packages, run outpdated to see what needs upgrading npm outdated

To upgrade minor versions of npm packages npm update This will return an exhaustive list of available packages, to install a package run npm install npm install easyimage There are many packages for Node such as the popular gulp.js, you use the command npm to see a complete list run: npm search To check your version of node run … node -v Installing Packages for Node If you have an earlier version of node you can just download the latest version and install to upgrade it and it will over write the previous version.

To exit the node.js session just hit ‘control’ + ‘c’ twice. zshrc in your home directory.Īfter install check it was ok by entering in the command line node which will open a node javascript session: node dmg by following along the install wizard which will install both node and npm, npm is Node Package Manager which allows for installs of additional packages for node.js.Īt the end of the install you are prompted to make sure that /usr/local/bin is in your path, double check you have it by running in the Terminal: echo $PATH Either version is Ok, if you are new to it best to use the LTS recommended version. Head over to and click the install button to download the latest package. To install node.js on macOS Big Sur, Catalina (and earlier OSX versions) you can download a pre-compiled binary package which makes a nice and easy installation. (If you have a Homebrew set up you can also install NodeJS with that). Node.js allows you to run javascript in the Terminal as appose to a regular browser which makes for a modern workflow in web development, with both node.js installed and a package manager called npm ( Node Package Manager) also installed, which can manage other packages that work with node.js, one of the main ones being gulp.jsfor a web development workflow.
