layout | title |
---|---|
default |
Installation |
node.js
(npm
included) required, please follow the installation guide:
- https://nodejs.org/en/download/package-manager/
- https://nodejs.org/en/download/
Then verify the result:
$ node -v
$ npm -v
Choose one of the following ways to install leetcode-cli:
From npm repo
$ sudo npm install -g leetcode-cli
From source code
$ git clone http://github.com/skygragon/leetcode-cli
$ cd leetcode-cli && ./bin/install
Then verify the result:
$ leetcode version