or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Windows Subsystem for Linux 2
Getting Started
Using
WSL2
with Visual Studio CodeRemote development Extension pack on VS Code
Troubleshooting
Troubleshooting
docker-compose
WSL
WSL2
following the docsdocker-compose
inWSL
WSL2
based engine in the settings on docker desktop.Resources
on docker desktop.Troubleshooting
npm
Based on Fiqri Ismail's Medium article:
Use the
nodesource
distribution installer:Use
apt-get
to installnodejs
:Verify that
node
is working:Troubleshooting
PATH
If you hit this:
First try this:
If you find your
pwd
starts with/mnt/c/…
and you shouldcd ~/
which will take you to your home folder insideWSL
which you want to be using instead when hacking on code.Then try this:
You are likely hitting a problem with importing your Windows
PATH
environment variable intoWSL2
.See https://github.com/microsoft/WSL/issues/1890.
Open
~/.bashrc
in your editor:Append the following line in the end:
If you still run into the problem with some commands you might wan to consider this approach: