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

Unable to install the module #9

Closed
MylowMntr opened this issue Jul 19, 2023 · 1 comment · Fixed by #12
Closed

Unable to install the module #9

MylowMntr opened this issue Jul 19, 2023 · 1 comment · Fixed by #12
Labels
bug Something isn't working

Comments

@MylowMntr
Copy link
Contributor

MylowMntr commented Jul 19, 2023

Hello there !
I know that the module is very recent, but I've been waiting for it for a while, I couldn't resist using it haha
Btw... I can't install it.

Here are the logs:

npm ERR! code 1
npm ERR! path C:\...\node_modules\@capacitor\background-runner
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\ADMINI~1\AppData\Local\Temp\postinstall-438df915.cmd
npm ERR! The command syntax is incorrect.

My config :
Win 11
npm 8.15.1
node 16.16.0
capacitor 5

I tried deleting the node_module to get a clean install, or install it using --force, but nothing.
Any ideas?

Thanks again for this plugin though!
Can't wait to use it


EDIT:
after npm update (9.8.0), new error:

npm ERR! code 1
npm ERR! path C:\...\node_modules\@capacitor\background-runner
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c mkdir -p $INIT_CWD/android/app/libs/ && cp -f android/src/main/libs/android-js-engine-release.aar $INIT_CWD/android/app/libs/
npm ERR! The command syntax is incorrect.

EDIT 2:
successful installation using WSL !
so there must be a problem in a variable that only works under Unix (I won't go any further)

@theproducer theproducer added the bug Something isn't working label Jul 19, 2023
@theproducer
Copy link
Collaborator

Thanks for the report!

Yes, the postinstall script assumes Unix (cp -f). I'll have a fix out for this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants