Javinizer icon indicating copy to clipboard operation
Javinizer copied to clipboard

error occurred when run "Javinizer -v"

Open freesense opened this issue 1 year ago • 6 comments

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 avatar Mar 20 '23 15:03 freesense

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
    

freesense avatar Mar 20 '23 15:03 freesense

Also receiving this error.

fluxtheory avatar Apr 02 '23 05:04 fluxtheory

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

seeyabye avatar May 04 '23 13:05 seeyabye

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

fluxtheory avatar May 05 '23 07:05 fluxtheory

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 avatar May 05 '23 14:05 seeyabye

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.

stevemackaron avatar Dec 15 '23 10:12 stevemackaron