🌐 AI搜索 & 代理 主页
Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 118c0f7

Browse files
committed
fix(docs): breakdown setup by platform
1 parent cafdbd7 commit 118c0f7

File tree

1 file changed

+73
-8
lines changed

1 file changed

+73
-8
lines changed

docs/setup.md

Lines changed: 73 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,90 @@
11
# Setup
22

3-
## 1. Install node.js and npm
3+
## OSX Setup
44

5-
For Mac and Windows, get the installer from [nodejs.org][node-download]
6-
and install it. That will get you `node` and `npm`.
5+
### 1. Install XCode
76

8-
For Linux distributions, check [this article][install-linux] on how to install
9-
a current version of node.js. (Note: the article is also linked from
10-
[node's wiki page][node-wiki-install].)
7+
You can easily [install XCode from the App Store](https://itunes.apple.com/us/app/xcode/id497799835?mt=12).
8+
9+
### 2. Install Homebrew
10+
11+
[Homebrew](http://brew.sh/) is a package manager for OSX. You can install it simply by pasting the below into your terminal:
12+
13+
```
14+
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
15+
```
1116

12-
## 2. Setup git and GitHub
17+
### 3. Install python, node.js, and npm
18+
19+
Python may be required for working with some projects. Installing node.js will provide you with the `node` and `npm` commands.
20+
21+
```
22+
brew install python nodejs;
23+
sudo easy_install pip;
24+
pip install pyobjc;
25+
npm install -g node-gyp;
26+
```
27+
28+
## 4. Setup git and GitHub
1329

1430
See [Setting up Git][git-setup]
1531
on GitHub's website for instructions to get started with git and GitHub.
1632

33+
## 5. Join gitter channel
34+
35+
We're hanging out on [gitter.im][gitter-monogodb-js], join the channel to stay
36+
up to date or ask questions.
37+
38+
## Windows Setup
39+
40+
## 1. Install Visual Studio 2013 or higher
41+
42+
You can download the [community edition for free](http://www.visualstudio.com/products/visual-studio-community-vs).
43+
44+
## 2. Install Python
45+
46+
Python may be required for working with some projects so just [download and run the installer](http://www.python.org/download/releases/2.7/).
47+
48+
## 3. Install node.js
49+
50+
[Download and run the installer][node-download] to get `node` and `npm`.
1751

18-
## 3. Join gitter channel
52+
## 4. Setup git and GitHub
53+
54+
See [Setting up Git][git-setup]
55+
on GitHub's website for instructions to get started with git and GitHub.
56+
57+
## 5. Join gitter channel
1958

2059
We're hanging out on [gitter.im][gitter-monogodb-js], join the channel to stay
2160
up to date or ask questions.
2261

62+
## Linux Setup
63+
64+
## 1. Install dependencies
65+
66+
```
67+
sudo apt-get install build-essential clang libdbus-1-dev libgtk2.0-dev \
68+
libnotify-dev libgnome-keyring-dev libgconf2-dev \
69+
libasound2-dev libcap-dev libcups2-dev libxtst-dev \
70+
libxss1 gcc-multilib g++-multilib
71+
```
72+
73+
## 2. Install node.js and npm
74+
75+
Check [this article][install-linux] on how to install
76+
a current version of node.js. (Note: the article is also linked from
77+
[node's wiki page][node-wiki-install].)
78+
79+
## 3. Setup git and GitHub
80+
81+
See [Setting up Git][git-setup]
82+
on GitHub's website for instructions to get started with git and GitHub.
83+
84+
## 4. Join gitter channel
85+
86+
We're hanging out on [gitter.im][gitter-monogodb-js], join the channel to stay
87+
up to date or ask questions.
2388

2489
[install-linux]: https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories
2590
[node-download]: https://nodejs.org/download/

0 commit comments

Comments
 (0)