Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forced create symbolic link #170

Merged
merged 1 commit into from
May 24, 2021

Conversation

mikanIchinose
Copy link
Contributor

@mikanIchinose mikanIchinose commented May 24, 2021

Problem

pnpm demo:dev cannot recreate a symbolic link at ubuntu-18.04.

pnpm demo:dev

> @0.13.10 demo:dev /home/solenoid/ghq/github.com/mikanIchinose/slidev
> pnpm -C demo/starter run dev


> @ dev /home/solenoid/ghq/github.com/mikanIchinose/slidev/demo/starter
> ln -sF ../../packages/create-app/template/slides.md slides.md && nodemon -w '../../packages/slidev/dist/*.js' --exec 'slidev ./slides.md --open=false --log=info'

ln: failed to create symbolic link 'slides.md': File exists
 ERROR  Command failed with exit code 1.
 ERROR  Command failed with exit code 1.

Solution

add option -f at dev script of demo/starter/packege.json

@antfu antfu merged commit 3afc764 into slidevjs:main May 24, 2021
@mikanIchinose mikanIchinose deleted the forced-create-symbolic-link branch May 24, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants