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

@ionic/utils-subprocess 2.1.12 change log does not mention node 16 is now the minimum version #5024

Open
joshstrange opened this issue Jun 23, 2023 · 1 comment
Labels

Comments

@joshstrange
Copy link

Description:
I'm currently upgrading to Capacitor 3 (yes, I'm behind, I've having to upgrade due to jcenter going down) and I'm also stuck on node 12. Trying to run npx cap sync ios gives me:

        promise.p.stdout?.pipe(stdoutBuf);
                         ^

SyntaxError: Unexpected token '.'

Because 12 does not have option chaining. I scanned the change log and found that in 2.0.0 the minimum was increased to node 10 but no other mention. Then scanning through the code I found this commit which says the minimum is being bumped to node 16. This does not seem appropriate for a patch version (2.1.11 -> 2.1.12)

Steps to Reproduce:

Try to use capacitor cli v3 with node 12

Output:

See above.

My ionic info:

N/A

Other Information:

This fix will probably be to try and pin @ionic/utils-subprocess at 2.1.11 but I wanted to record this for others running into the same issue (possibly for the same reasons, having to upgrade due to jcenter/jfrog).

@ionitron-bot ionitron-bot bot added the triage label Jun 23, 2023
@joshstrange
Copy link
Author

If you are using pnpm you can fix this by adding the following to your ROOT package.json file. I assume npm and yarn have similar concepts:

	"pnpm": {
		"overrides": {
			"@ionic/utils-subprocess": "2.1.11"
		}
	}

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

No branches or pull requests

1 participant