Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error occurred when run "Javinizer -v" #363

Open
freesense opened this issue Mar 20, 2023 · 6 comments
Open

error occurred when run "Javinizer -v" #363

freesense opened this issue Mar 20, 2023 · 6 comments
Labels
wont fix This will not be worked on

Comments

@freesense
Copy link

Javinizer : The 'Javinizer' command was found in the module 'Javinizer', but the module could not be loaded. For more i
nformation, run 'Import-Module Javinizer'.
At line:1 char:1

  • Javinizer -v
  •   + CategoryInfo          : ObjectNotFound: (Javinizer:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
    
@freesense
Copy link
Author

when command "Import-Module Javinizer" runned, it replied:

Import-Module : Unable to dot source [C:\Program Files\WindowsPowerShell\Modules\Javinizer\2.5.10\Public\Get-TokyoHotUr
l.ps1]
At line:1 char:1

  • Import-Module Javinizer
  •   + CategoryInfo          : OperationStopped: (Unable to dot s...okyoHotUrl.ps1]:String) [Import-Module], RuntimeExc
     eption
      + FullyQualifiedErrorId : Unable to dot source [C:\Program Files\WindowsPowerShell\Modules\Javinizer\2.5.10\Public
     \Get-TokyoHotUrl.ps1],Microsoft.PowerShell.Commands.ImportModuleCommand
    

@fluxtheory
Copy link

Also receiving this error.

@seeyabye
Copy link
Collaborator

seeyabye commented May 4, 2023

You're not supposed to use Import-Module. How are you installing Javinizer?

@fluxtheory
Copy link

fluxtheory commented May 5, 2023

You're not supposed to use Import-Module. How are you installing Javinizer?

The first error message is telling us to run Import-Module. We've installed it the way the documentation told us to. Via

Install-Module Javinizer

@seeyabye
Copy link
Collaborator

seeyabye commented May 5, 2023

If you've installed it with Install-Module, you should be able to launch Javinizer directly, without requiring an additional step of Import-Module. Install-Module and Import-Module are mutually exclusive.

@seeyabye seeyabye added the wont fix This will not be worked on label May 6, 2023
@stevemackaron
Copy link

stevemackaron commented Dec 15, 2023

Just wanted to add a solution to the most common cause of this issue - at least with the current version of Windows PowerShell.

The requirement for Javinizer is Powershell 7, not the pre-installed Windows Powershell. Using the base Powershell will result in the above series of errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wont fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants