Failed linking community add-on template
#63Windows doing bullshit as always again. After running pnpm start
in ./community-adder-template
and confirming the community adder warning, it failed creating the symbolic link:
PS D:\dev\web\svelte-cli\community-adder-template> pnpm start
> community-adder-template@0.0.0 start D:\dev\web\svelte-cli\community-adder-template
> sv add -C temp --community file:../
┌ Welcome to the Svelte CLI! (v0.5.0)
│
◇ Resolved community adder packages
│
▲ The Svelte maintainers have not reviewed community adders for malicious code. Use at your discretion.
│
│ community-adder-template (v0.0.0) (D:\dev\web\svelte-cli\community-adder-template)
│
◇ Would you like to continue?
│ Yes
│
■ Failed to resolve community adder packages
└ Operation failed.
EPERM: operation not permitted, symlink 'D:\dev\web\svelte-cli\community-adder-template' -> 'D:\dev\web\svelte-cli\packages\cli\node_modules\community-adder-template'
Running exactly the same command from an administrator prompt fixes the issue.
According to SO, this is a security feature: https://stackoverflow.com/a/64992080 (second to last paragraph). Not sure how i.e. pnpm
is using this, as this does not seem to be an issue there
Not sure how i.e.
pnpm
is using this, as this does not seem to be an issue there
i guess they have their own workarounds too lol https://pnpm.io/faq#does-it-work-on-windows
will take a look at this later