Skip to content

Commit e302b96

Browse files
committed
Merge pull request #15 from gohdcl/improve-install-node
Added node.js setup information for fish shell and changed path for inst...
2 parents 5501478 + 8d2ec26 commit e302b96

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎setup/install_node_from_source.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is only if you need to, generally just on Linux systems.
1212
```
1313
tar -xvf <the node tar.gz you downloaded>
1414
cd <node directory>
15-
./configure --prefix=~/.node
15+
./configure --prefix=$HOME/.node
1616
make && make install
1717
```
1818

@@ -22,6 +22,12 @@ export PATH=$PATH:$HOME/.node/bin
2222
export NODE_PATH=$HOME/.node/lib/node_modules
2323
```
2424

25+
or for fish, add the following to config.fish (~/.config/fish/config.fish)
26+
```
27+
set -gx PATH $PATH $HOME/.node/bin
28+
set -gx NODE_PATH $HOME/.node/lib/node_modules
29+
```
30+
2531
## Making sure it works
2632

2733
- Restart your shell and the command `node -v` should print out the current node

0 commit comments

Comments
 (0)