See full list on treehouse.github.io. Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Latest LTS Version: 14.15.0 (includes npm 6.14.8) Download the Node.js source code or a pre-built installer for your platform, and start developing today.
This article will tell you how to install Node JS and NPM(node package manager) on MacOS step by step. There are three ways to install it on mac, run the official installer, install node binary for macOS directly or use mac Homebrew package manager. We will introduce them all.
1. Install / Uninstall Node JS Use Node Installer For Mac.
- Download node js mac installer (pkg file) from node js official site.
- Click the downloaded file to open installer. Process the installation as normal by click next or continue button. Please note where the node js is installed. It will be installed to /usr/local/bin/node directory. And the npm( node package manager ) will be installed to /usr/local/bin/npm directory.
- After installation, open a terminal in macos, run
node -v
andnpm -v
in the terminal to verify the installation. - Uninstall node js in this way is just to delete node, node_modules folder under below global or your personal folders ( for example/usr/local/lib/node,/usr/local/lib/node_modules).
2. Install / Uninstall Node JS Use MacOS Binary.
If you want to use multiple node js version in your mac. You can also download different version of node js zip file, then unzip and save them in different folder. Then you can use different version node js.
- Download node js MacOS version binary file.
- Unzip the zip file to a local folder, and cd into that folder in terminal. Then you can find the bin folder under it. The node and npm executable file are all saved in the bin folder.
- Cd into the bin folder, and execute
./node -v
and./npm -v
to verify node and npm version. - If you want to use this node js version conveniently, you can add the bin folder full path ( /Users/zhaosong/Downloads/node-v8.12.0-darwin-x64/bin ) to os system environment variable $PATH. Please refer How To Set JAVA_HOME, MAVEN_HOME Environment Variable In MacOS to learn how to add node bin folder in MacOS $PATH value.
- After above step, you can run node command from any directory in terminal, you do not need to go to the node js bin folder to run it.
- Uninstall node js in this method is similar with section one in this article. You need to remove the unzip node js folder and related installed node modules.
Install Node Js On Mac
3. Install / Uninstall Node JS Use MacOS Homebrew.
Homebrew is MacOS package manager tool. You can use it to install MacOS software ( such as node js ) easily.
- Run
brew -v
in terminal to check whether homebrew is installed or not. - If homebrew do not exist, then run below command in terminal to install it on your MacOS.
- Then you can install node js use homebrew easily.
- Upgrade homebrew command.
- To upgrade node with homebrew.
- It is also very easy to uninstall node js with homebrew.
Reference
Download the starter kit to get everything you need toget started with React. The starter kit includes React and some simple example apps.
Development vs. Production Builds #
We provide two versions of React: an uncompressed version for development and a minified version for production. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages.
If you're just starting out, make sure to use the development version.
![Download npm for mac Download npm for mac](/uploads/1/1/8/5/118540994/856813081.png)
See Full List On Treehouse.github.io
Individual Downloads #
React 0.14.3 (development) #
The uncompressed, development version of react.js and react-dom.js with inline documentation (you need both files).
React 0.14.3 (production) #
The compressed, production version of react.js and react-dom.js (you need both).
React with Add-Ons 0.14.3 (development) #
The uncompressed, development version of React with optional add-ons.
React with Add-Ons 0.14.3 (production) #
The compressed, production version of React with optional add-ons.
All scripts are also available via CDNJS.
npm #
We recommend using React from npm with a bundler like browserify or webpack. You can use the
react
and react-dom
packages. After installing it using npm install --save react react-dom
, you can use:Each of the add-ons lives in its own package.
Note: by default, React will be in development mode. To use React in production mode, set the environment variable
NODE_ENV
to production
(using envify or webpack's DefinePlugin). A minifier that performs dead-code elimination such as UglifyJS is recommended to completely remove the extra code present in development mode.