GithubHelp home page GithubHelp logo

Comments (6)

heaths avatar heaths commented on May 16, 2024

How did you install it? You need to either use the MSI installer, or if using WMF you can use the install-package or install-module cmdlets. Either hook up the path. If you use the ZIP, you need to either extract it to your Modules directory or set the PATH yourself. ZIPs can't do that.

from psmsi.

heaths avatar heaths commented on May 16, 2024

Sorry, I see you did use the MSI installer from the title. Note that when any installer (batch, Windows Installer, etc.) update environment variables like PATH command shells (at least built-in ones like cmd.exe and things like powershell.exe that run within cmd.exe) do not automatically pick up those changes. You need to restart the environment. That should work and, so far as I know, has for anyone I know using it.

If not, please reopen this bug and share out what your PSMODULEPATH and PATH environment variables expand to, ex:

$env:PATH
$env:PSMODULEPATH

from psmsi.

alex-chan avatar alex-chan commented on May 16, 2024

It does not work. My env:

PS C:\Users\Administrator> $env:PATH %SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System 32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Python27;D:\Python27\Scripts;C:\Us ers\Administrator\AppData\Local\Programs\Windows Installer PowerShell Module

PS C:\Users\Administrator> $env:PSMODULEPATH %PSMODULEPATH%;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Users\Administrator\AppData\Local\Programs\Window s Installer PowerShell Module\

from psmsi.

heaths avatar heaths commented on May 16, 2024

@alex-chan What specifically does not work? Your environment looks right.

It's better you stop using the MSI anyway. Just use install-module msi (or install-package msi, but it has a wider set of sources it queries) and everything works fine.

from psmsi.

zzpbuaa avatar zzpbuaa commented on May 16, 2024

Hi, we encounter a similar case, and we resolve it by "import" module in script. Because on some version of Powershell, it does not import all available module automatically. On some win7 system, it has this kind of powershell.

I don't know if my issue is related, just for your information.

from psmsi.

heaths avatar heaths commented on May 16, 2024

Not an issue with this module, but a limitation of older versions of PowerShell that some automatically import.

from psmsi.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.