LearnPack is a product that has had many hours of work invested in it, so to have a better user experience, here are some of the most frequently asked questions about the interface and common errors.
Frequently Asked Questions
How do I open the instructions on the right?
To open the LearnPack interface, you have several options:
- Restart LearnPack
- Press
Ctrl+Cto stop LearnPack - Run
learnpack startagain
- Press
If you have the LearnPack extension installed in your code editor, the instructions should open automatically.
- Using the editor's
command palette:- Press
F1orCtrl+Shift+P - Type
LearnPack - Select the
LearnPack: Open Instructionsoption
- Press
I don't see the terminal
To open the terminal, you can generally do any of the following:
- Use the keyboard shortcut
Ctrl+Jin your code editor - Use the keyboard shortcut
Ctrl+ ` (backtick) in your editor - Quick Command: Press
Ctrl+Shift+Pto open the command palette, then typeTerminal: Create New Terminaland select the option.
How to open a second terminal?
If you are using VSCode, you can open a second terminal in the following ways:
-
Using the menu:
- Go to the menu bar and select
Terminal. - Then select
New Terminal.
- Go to the menu bar and select
-
Using keyboard shortcuts:
- Press
Ctrl+Shift+(backtick)to open a new terminal.
- Press
-
Using the command palette:
- Press
F1orCtrl+Shift+Pto open the command palette. - Type
Terminal: Create New Terminaland select the option.
- Press
These options will allow you to open a second terminal in your VSCode editor.
Connection lost!
The connection lost error occurs when the LearnPack interface cannot communicate with the LearnPack server running on your machine. To resolve it, you should ensure that LearnPack is running in a terminal.
- If it is not running, execute:
learnpack startand wait a few seconds for the interface to reconnect automatically. - If LearnPack is already running, simply press the
Reloadbutton that the connection lost modal shows you.
'learnpack' is not recognized as an internal or external command
This message may be different depending on your operating system.
If LearnPack is not installed on your system, the command learnpack start and any learnpack command won't work. To solve this issue, just install LearnPack on your system with the following command: npm i -g @learnpack/learnpack. This will install the latest version of LearnPack from the npm registry globally on your system.
To execute LearnPack locally, you must have Node (> 14) installed.
💡 You can check if LearnPack is installed with the following command:
npm ls -g @learnpack/learnpack
