NPM Installation

Install LeetCode Ghost Window using npm for a streamlined CLI experience.

Note: The npm installation provides the CLI interface, which can launch the desktop application. You'll still need to have the desktop application installed for full functionality.

Prerequisites

  • Node.js v18 or newer
  • npm, yarn, or pnpm package manager
  • LeetCode Ghost Window desktop application (for full functionality)

Installation Steps

Install the LeetCode Ghost Window CLI globally:

npm install -g leetcode-joseok

Verify the installation was successful:

leet-joseok --version

Configuration

After installation, configure the CLI with your OpenAI API key for AI analysis:

leet-joseok config set apiKey YOUR_OPENAI_API_KEY

Launching the Application

Once installed and configured, you can launch the LeetCode Ghost Window with a simple command:

leet-joseok init

This will start the application in ghost mode, ready for solving LeetCode problems.

Additional CLI Features

The CLI also supports other commands:

  • leet-joseok config list - View all configuration settings
  • leet-joseok help - Display help information

For more detailed information about CLI commands, see the CLI documentation.

Troubleshooting

Command Not Found

If you see "command not found" errors, make sure:

  • The global npm bin directory is in your PATH
  • You don't have npm permission issues

You can try with sudo (on Linux/Mac):

sudo npm install -g leetcode-joseok

Desktop Application Not Found

If the CLI can't find the desktop application, make sure:

  • You have installed the LeetCode Ghost Window desktop application
  • The application is installed in a standard location (or create a symlink)