Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Bug: Windows PS script is incompatible with PowerShell 5.x #14

@alex-key

Description

@alex-key

Prerequisites:

  • Windows 10
  • PowerShell 5.1
> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  6456

Steps to reproduce:

  • Run irm https://staging.viteplus.dev/install.ps1 | iex in PowerShell
  • See errors

What should be fixed:

  1. Join-Path in PS 5.x can take only 2 arguments (check Join-Path PS 6.0 VS Join-Path PS 5.1):

Line 134:

# now
$binarySource = Join-Path $platformTempExtract "package" $binaryName

# fixed
$binarySource = Join-Path (Join-Path $platformTempExtract "package") $binaryName

Line 296

# now
$sourcePath = Join-Path $tempExtract "package" $Filter

# fixed
$sourcePath = Join-Path (Join-Path $tempExtract "package") $Filter
  1. Checkmark UTF-8 character causes exception. I am not sure if it's because of my local env or it's a common problem for any PS 5.x, but consider replacing this checkmark for reliable installation (as this is purely cosmetic thing)

Line 385

Write-Host "${GREEN}${NC} ${BOLD_BRIGHT_BLUE}VITE+${NC} successfully installed!"

Thank you!

Let me know if you need PS 5.x compatible version of install.ps1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions