Skip to content

Commit 68e81eb

Browse files
committed
[Pages] add guide for install error on Ubuntu.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent ee30404 commit 68e81eb

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/install.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ title: Installation
77

88
`node.js` (`npm` included) required, please follow the installation guide:
99

10-
* https://nodejs.org/en/download/package-manager/
11-
* https://nodejs.org/en/download/
10+
* [Install from package manager](https://nodejs.org/en/download/package-manager/)
11+
* [Install from directly download](https://nodejs.org/en/download/)
1212

13-
You might wanna choose the latest stable release on the list.
13+
Please install the latest LTS version on the list above.
1414

1515
Then verify the result:
1616

@@ -23,10 +23,18 @@ Choose one of the following ways to install leetcode-cli:
2323

2424
### From npm
2525

26-
This will install the latest stable release, but not include the latest development version.
26+
This will install the latest stable version, but not include the latest development version.
2727

2828
$ npm install -g leetcode-cli
2929

30+
In case Ubuntu failed due to `permission denied`, run following and try again:
31+
32+
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
33+
$ source ~/.bashrc
34+
$ nvm install --lts
35+
36+
See more details [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions).
37+
3038
### From GitHub
3139

3240
This will install the latest development version on GitHub.
@@ -35,7 +43,7 @@ This will install the latest development version on GitHub.
3543

3644
### From local source
3745

38-
Similar with above, while you can introduce your changes as you like.
46+
Similar with above, while you can introduce your own changes as you wish.
3947

4048
$ git clone http://github.com/skygragon/leetcode-cli
4149
$ cd leetcode-cli && ./bin/install

0 commit comments

Comments
 (0)