Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.24 KB

install.md

File metadata and controls

53 lines (31 loc) · 1.24 KB
layout title
default
Installation

Prerequisites

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

Please install the latest LTS version on the list above.

Then verify the result:

$ node -v
$ npm -v

Installation

Choose one of the following ways to install leetcode-cli:

From npm

This will install the latest stable version, but not include the latest development version.

$ npm install -g leetcode-cli

In case Ubuntu failed due to permission denied, run following and try again:

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
$ source ~/.bashrc
$ nvm install --lts

See more details here.

From GitHub

This will install the latest development version on GitHub.

$ npm install -g skygragon/leetcode-cli

From local source

Similar with above, while you can introduce your own changes as you wish.

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

Then verify the result:

$ leetcode version