vue-demi icon indicating copy to clipboard operation
vue-demi copied to clipboard

Skip postinstall script in Deno

Open alexgleason opened this issue 1 year ago • 2 comments

Skip postinstall script if node is not in the path, which may be the case if only deno is used (such as in CI).

Currently it is causing an error as mentioned here: https://github.com/denoland/deno/issues/21110#issuecomment-2271861789

Error launching 'node': No such file or directory (os error 2)
error: script 'postinstall' in '[email protected]' failed with exit code 1
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

This prevents vitepress from working on Deno.

alexgleason avatar Aug 06 '24 18:08 alexgleason

On the other hand, I am worried that this might not work in Windows. Could you help to verify/check that?

antfu avatar Aug 07 '24 06:08 antfu

It definitely doesn't as Windows doesn't have such command.

'which' is not recognized as an internal or external command,
operable program or batch file.

Would love this to be fixed. Trying to use Vueuse with the new Deno 2,0 but no luck.

Luffyyy avatar Oct 15 '24 23:10 Luffyyy