NativeScript / docs-v7

Documentation, API reference, and code snippets for NativeScript
https://docs.nativescript.org
Apache License 2.0
446 stars 457 forks source link

update chocolatey windows install command #1878

Open alereisan opened 4 years ago

alereisan commented 4 years ago

new chocolatey windows install command, pasted from chocolatey.org, because old command throws errors:

PS C:\WINDOWS\system32> @powershell -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
In Zeile:1 Zeichen:13
+ @powershell -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+             ~~~~~~~~~~~~~~~~
Unerwartetes Token "-ExecutionPolicy" in Ausdruck oder Anweisung.
In Zeile:1 Zeichen:30
+ @powershell -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+                              ~~~~~~~~~~~~
Unerwartetes Token "unrestricted" in Ausdruck oder Anweisung.
In Zeile:1 Zeichen:140
+ ... nt).DownloadString('https://chocolatey.org/install.ps1'))" && SET PAT ...
+                                                                ~~
Das Token "&&" ist in dieser Version kein gültiges Anweisungstrennzeichen.
In Zeile:1 Zeichen:1
+ @powershell -ExecutionPolicy unrestricted -Command "iex ((new-object  ...
+ ~~~~~~~~~~~
Der Splat-Operator "@" kann nicht dazu verwendet werden, auf Variablen in einem Ausdruck zu verweisen. "@powershell"
kann nur als Argument für einen Befehl verwendet werden. Wenn Sie auf Variablen in einem Ausdruck verweisen möchten,
verwenden Sie "$powershell".
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken
cla-bot[bot] commented 4 years ago

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla. CLA has not been signed by users: @alereisan. After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check as a comment to the PR.