I used an online article to install in a disconnected/offline environment, where Powershell is already installed on the machine. URL: https://stackoverflow.com/questions/51406685/how-do-i-install-the-nuget-provider-for-powershell-on-a...
I copied/exported the repository and also copied the offlinepowershellgetdeploy.nupkg to an folder, that the disconnected machine could connect to.
The following modules are installed under C:\Program Files\WindowsPowerShell\Modules:
ArcGIS, PowerShellGet, PackageManagement
I then used the publish .nupkg command, this completed successfully.
## Install offlinepowershellgetdeploy
NuGet.exe install -o extract-directory "offlinepowershellgetdeploy" -source "D:\localhost\LocalPSRepo"
I also installed .nupkg for ArcGIS, PowerShellGet, PackageManagement.
I then ran PS commands:
Error: Unable to find module providers (PowerShellGet)
Find-Module -Repository LocalPSRepo
>> NuGet is required
I then get a pop-up window and error message to install NuGet:
>> PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet)
PowershellGet.psd1 is installed @ C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\184.108.40.206
## Get Packages
>> NuGet 220.127.116.11
Any suggestions how to get the offline repository (LocalPSRepo) registered on the disconnected server, is much appreciated..