-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Description
The installation command in the README fails when executed on Windows PowerShell:
mv CN/* CN/.* . 2>/dev/null ; rmdir CNError 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/nullis Linux-specific error redirection/dev/nulldoesn't exist on Windows
Suggested Solution
Add Windows-specific instructions to the README:
For Linux/macOS:
mv CN/* CN/.* . 2>/dev/null ; rmdir CNFor Windows PowerShell:
mv CN\* . 2>$null; mv CN\.* . 2>$null; rmdir CNOr 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels