This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Instruction for installation Node on Mac #85
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
...000-template-installation-node-on-mac/0000-template-installation-node-on-mac.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
- **Start Date:** 2018-08-18 | ||
- **PR:** | ||
- **Issue:** [#60](https://github.com/nodejs/website-redesign/issues/60) | ||
- **Keywords:** install node mac | ||
- **Summary:** Instruction how to install node.js on MacOS using Homebrew | ||
|
||
# Installation of Node.js | ||
|
||
Node.js is a tool for building fast network applications. It's known as a "JavaScript runtime environment" which simply means it lets you write JavaScript code that can run on your computer free of any web browser. Node.js is used to create fast web servers by companies like Walmart, eBay and Netflix. | ||
|
||
## Body Content | ||
|
||
### Preparation | ||
Before installation of Node you should have Homebrew installed on your machine. | ||
If it's not installed, just open Terminal and type: **ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"**. You'll see messages in the Terminal explaining what you need to do to complete the installation process. | ||
|
||
### Installation | ||
Installation of Node with Homebrew is pretty straightforward - open the Terminal app and type **brew install node**. | ||
|
||
To make sure you have Node and NPM installed, run two simple commands to see what version of each is installed: | ||
1. To see if Node is installed, type **node -v** in Terminal. This should print the version number so you'll see something like this v10.6.0 | ||
2. To see if NPM is installed, type **npm -v** in Terminal. This should print the version number so you'll see something like this 6.3.0 | ||
|
||
 | ||
|
||
### Updating | ||
New versions of Node and NPM come out frequently. You can use Homebrew to update the software it installs. | ||
To upgrade Node type in Terminal **brew upgrade node** | ||
|
||
### Uninstallation | ||
To uninstall Node type in Terminal **brew uninstall node** | ||
|
||
## Conclusion | ||
|
||
With Node.js and NPM installed you�ll soon be able to take advantage of the huge world of NPM modules that can help with a wide variety of tasks both on the web server and on your desktop (or laptop) machine. The NPM site lists all of the official Node packages making it easy to make the choice. |
Binary file added
BIN
+23.8 KB
documentation/0000-template-installation-node-on-mac/versions_of_node_and_npm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would highly recommend not doing this. The major problem with this type of installation is that it would require
sudo
to install packages. Let's recommend nvm or nvs.