javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
599 stars 62 forks source link

error occurred when run "Javinizer -v" #363

Open freesense opened 1 year ago

freesense commented 1 year ago

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

freesense commented 1 year ago

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

fluxtheory commented 1 year ago

Also receiving this error.

seeyabye commented 1 year ago

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

fluxtheory commented 1 year ago

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 commented 1 year ago

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.

stevemackaron commented 9 months ago

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.