Skip to content

Conversation

alexgleason
Copy link

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: denoland/deno#21110 (comment)

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.

@antfu
Copy link
Member

antfu commented Aug 7, 2024

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

@Luffyyy
Copy link

Luffyyy commented Oct 15, 2024

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.

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.

3 participants