Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Not working on windows with powershell #6

Closed
kkoomen opened this issue Mar 7, 2021 · 2 comments
Closed

Not working on windows with powershell #6

kkoomen opened this issue Mar 7, 2021 · 2 comments

Comments

@kkoomen
Copy link

kkoomen commented Mar 7, 2021

See my job: https://github.com/kkoomen/vim-doge/runs/2050697059?check_suite_focus=true

D:\a\vim-doge\vim-doge\node_modules\.bin\caxa:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

My job basically calls npm run build:binary:windows (see here) and then this script is running ./scripts/build.ps1#L12.

EDIT: this is a weird bug and I guess it's not your problem though.

@kkoomen kkoomen changed the title Not working on windows with ps1 Not working on windows with powershell Mar 7, 2021
@kkoomen
Copy link
Author

kkoomen commented Mar 7, 2021

Using npx caxa inside the build.ps1 fixed it.

@kkoomen kkoomen closed this as completed Mar 7, 2021
@leafac
Copy link
Owner

leafac commented Mar 16, 2021

Thanks for trying out caxa! 🙌

I’m glad you found the solution. I’m surprised by this issue as well: I thought that anything inside "scripts" would have node_modules/.bin on the PATH

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants