Esc

COMARK1309 · warning

comark/tabs/no-npm-command

Write an npm2yarn block in npm commands

An npm2yarn block turns npm and npx commands into each package manager's. A block written in another manager, such as pnpm add, has nothing to turn, so every tab shows the same command and the pnpm one ends up under npm's label.

Incorrect

```sh npm2yarn
pnpm add duck-feeder
```
md
lint-comark example.mdexample.md:1:1 comark/tabs/no-npm-commandnpm2yarn block 1 has no npm or npx command, so every tab shows the same code.Write the commands in npm, such as npm install.✖ 1 problem

Correct

```sh npm2yarn
npm install duck-feeder
```
md
lint-comark example.md✔ No problems