Skip to content

Commit 2315462

Browse files
committed
improve install node instructions
also jshintrc and lint fix for server
1 parent 9c88f5f commit 2315462

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

‎.jshintrc‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"globals": {
3+
"describe" : false,
4+
"it" : false,
5+
"to" : false,
6+
"ok" : false,
7+
"be" : false,
8+
"before" : false,
9+
"beforeEach" : false,
10+
"after" : false,
11+
"afterEach" : false,
12+
"equal" : false
13+
},
14+
"globalstrict": true,
15+
"quotmark": true,
16+
"smarttabs": true,
17+
"trailing": true,
18+
"undef": true,
19+
"unused": true,
20+
"indent": 2,
21+
"node": true
22+
}

‎server.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var express = require('express');
24
var app = express();
35
app.use(express.static(__dirname + '/public'));

‎setup/install_node_from_source.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
This is only if you need to, generally just on Linux systems.
44

55
- Goto the node website
6-
- Click download
7-
- Click the source download
6+
- Click [downloads](http://nodejs.org/download/)
7+
- Click the **Source Code** download. Usually the last row. It will be a file like `http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz`
8+
9+
The version # may be greater.
10+
811
- Go to the directory where you downloaded the source and do:
912
```
10-
tar -xzvf <the node tar.gz you downloaded>
13+
tar -xvf <the node tar.gz you downloaded>
1114
cd <node directory>
1215
./configure --prefix=~/.node
1316
make && make install

0 commit comments

Comments
 (0)