Skip to content

Commit b7620c4

Browse files
committed
chore(install): clarify Node.js version management prompt
Closes #1059
1 parent a5512c6 commit b7620c4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/cli/install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ function Setup-NodeManager {
249249
$isInteractive = [Environment]::UserInteractive
250250
if ($isInteractive) {
251251
Write-Host ""
252-
Write-Host "Would you want Vite+ to manage Node.js versions?"
252+
Write-Host "Would you like Vite+ to manage your Node.js versions?"
253+
Write-Host "It adds ``node``, ``npm``, and ``npx`` shims to ~/.vite-plus/bin/ and automatically uses the right version."
254+
Write-Host "Opt out anytime with ``vp env off``."
253255
$response = Read-Host "Press Enter to accept (Y/n)"
254256

255257
if ($response -eq '' -or $response -eq 'y' -or $response -eq 'Y') {

packages/cli/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ setup_node_manager() {
487487
# Prompt user in interactive mode
488488
if [ -e /dev/tty ] && [ -t 1 ]; then
489489
echo ""
490-
echo "Would you want Vite+ to manage Node.js versions?"
490+
echo "Would you like Vite+ to manage your Node.js versions?"
491+
echo "It adds \`node\`, \`npm\`, and \`npx\` shims to ~/.vite-plus/bin/ and automatically uses the right version."
492+
echo "Opt out anytime with \`vp env off\`."
491493
echo -n "Press Enter to accept (Y/n): "
492494
read -r response < /dev/tty
493495

0 commit comments

Comments
 (0)