From d521d3baa8dc79a1800f55404af7c9ca955db0b5 Mon Sep 17 00:00:00 2001 From: Henrik Helgesen Date: Thu, 24 Feb 2022 02:42:12 -0800 Subject: [PATCH] Install via Powersehll --- .../UsingPowershellOnWindows11/index.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 content/docs/Contributing/InstallHugo/UsingPowershellOnWindows11/index.md diff --git a/content/docs/Contributing/InstallHugo/UsingPowershellOnWindows11/index.md b/content/docs/Contributing/InstallHugo/UsingPowershellOnWindows11/index.md new file mode 100644 index 00000000..3b64af8f --- /dev/null +++ b/content/docs/Contributing/InstallHugo/UsingPowershellOnWindows11/index.md @@ -0,0 +1,22 @@ +--- +Title: Powershell on Windows 11 +description: > + Install Hugo with a simple Powershell Script and chocolatey +--- + +It is possible to use a powershell script and Chocolatey to install and other dependencies. Execute the following script: + +```powershell +Set-ExecutionPolicy Bypass -Scope Process -Force +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 +Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) +choco install -y nodejs +choco install -y hugo-extended +``` + +Once complete, in root of of the repository execute the following commands + +```powershell +git submodule update --init --recursive --depth 1 +npm install +```