Skip to content

Installing Module using Install-Module Fails #3986

@ishu3101

Description

@ishu3101

When I try to install a module using Install-Module PSMarkdown -Scope CurrentUser, it shows a very quick message saying Installing package PSMarkdown and then the message goes away and nothing gets installed.

When I run $PSVersionTable, this is what I get. I'm running Powershell on Linux running Ubuntu 14.04.2 LTS

Name                           Value                                                                                                                                               
----                           -----                                                                                                                                               
PSVersion                      6.0.0-beta                                                                                                                                          
PSEdition                      Core                                                                                                                                                
BuildVersion                   3.0.0.0                                                                                                                                             
CLRVersion                                                                                                                                                                         
GitCommitId                    v6.0.0-beta.2                                                                                                                                       
OS                             Linux 4.9.17-c9 #1 SMP Thu Mar 23 01:38:54 UTC 2017                                                                                                 
Platform                       Unix                                                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                             
PSRemotingProtocolVersion      2.3                                                                                                                                                 
SerializationVersion           1.1.0.1                                                                                                                                             
WSManStackVersion              3.0    

However when I install Powershell using docker on https://www.katacoda.com/courses/docker/playground via docker run -it --rm microsoft/powershell and then try to install any Powershell Module it installs as expected.

This is what I get when I run $PSVersionTable on the above docker image running Powershell.

Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
BuildVersion                   3.0.0.0
CLRVersion
GitCommitId                    v6.0.0-beta.2
OS                             Linux 4.4.49-1-lts #1 SMP Wed Feb 15 18:04:00 CET 2017
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PowerShellGetspecific to PowerShellGet moduleIssue-BugIssue has been identified as a bug in the productResolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions