Skip to content

Commit de6c417

Browse files
sharilsiamcco
andauthored
Change yarn to npx --yes yarn (iamcco#540)
Co-authored-by: 年糕小豆汤 <[email protected]>
1 parent 0b38302 commit de6c417

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Install with [vim-plug](https://github.com/junegunn/vim-plug):
4141
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
4242
4343
44-
" If you have nodejs and yarn
45-
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
44+
" If you have nodejs
45+
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && npx --yes yarn install' }
4646
```
4747

4848
Or install with [dein](https://github.com/Shougo/dein.vim):
4949

5050
```vim
5151
call dein#add('iamcco/markdown-preview.nvim', {'on_ft': ['markdown', 'pandoc.markdown', 'rmd'],
52-
\ 'build': 'sh -c "cd app && yarn install"' })
52+
\ 'build': 'sh -c "cd app && npx --yes yarn install"' })
5353
```
5454

5555
Or with [minpac](https://github.com/k-takata/minpac):
@@ -121,11 +121,12 @@ add plugin to the `~/.local/share/nvim/site/pack/packer/start/` directory:
121121
cd ~/.local/share/nvim/site/pack/packer/start/
122122
git clone https://github.com/iamcco/markdown-preview.nvim.git
123123
cd markdown-preview.nvim
124-
yarn install
125-
yarn build
124+
npx --yes yarn install
125+
npx --yes yarn build
126126
```
127+
127128
Please make sure that you have installed `node.js` and `yarn`.
128-
Open `nvim` and run `:PackerInstall` to make it work.
129+
Open `nvim` and run `:PackerInstall` to make it workable
129130

130131
### MarkdownPreview Config:
131132

0 commit comments

Comments
 (0)