Skip to content

[Documentation] Installation command not compatible with Windows PowerShell #2

@Cjantwhy

Description

@Cjantwhy

Description

The installation command in the README fails when executed on Windows PowerShell:

mv CN/* CN/.* . 2>/dev/null ; rmdir CN

Error Message

out-file : 未能找到路径"C:\dev\null"的一部分。
所在位置 行:1 字符: 1
+ mv CN/* CN/.* . 2>/dev/null; rmdir CN
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

Environment

  • OS: Windows 11
  • Shell: PowerShell 5.1

Root Cause

The command uses Linux/Unix shell syntax which is not compatible with Windows PowerShell:

  • 2>/dev/null is Linux-specific error redirection
  • /dev/null doesn't exist on Windows

Suggested Solution

Add Windows-specific instructions to the README:

For Linux/macOS:

mv CN/* CN/.* . 2>/dev/null ; rmdir CN

For Windows PowerShell:

mv CN\* . 2>$null; mv CN\.* . 2>$null; rmdir CN

Or suggest using WSL/Git Bash for Windows users.

Additional Context

Windows users may encounter this issue during installation. Adding platform-specific commands would improve the installation experience for cross-platform users.

Would you like me to submit a PR to update the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions