I try to follow the “Get Started” guide for Quarkus. As described in the documentation, I entered the command in a PowerShell window:
iex "& { $(iwr https://ps.jbang.dev) } trust add https://repo1.maven.org/maven2/io/quarkus/quarkus-cli/"
Unfortunately, I received the following answer:
iex : Impossible d’appeler la méthode. L’appel aux méthodes n’est pris en charge que sur les types principaux dans ce
mode de langage.
Au caractère Ligne:1 : 1
+ iex "& { $(iwr https://ps.jbang.dev) } trust add https://repo1.maven. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [Invoke-Expression], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,Microsoft.PowerShell.Commands.InvokeEx
pressionCommand
Why does this error occur?
New contributor
ThierryD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.