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

Skip postinstall script in Deno #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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