-
Notifications
You must be signed in to change notification settings - Fork 321
Open
Description
~> volta install node
success: installed and set [email protected] (with [email protected]) as default
note: node is shadowed by another binary of the same name at /Users/asidie/.volta/bin/node. To ensure your commands work as expected, please move ~/.volta/bin to the start of your PATH.Here is the line-wrapped version of the warning note for easier reading:
note: node is shadowed by another binary of the same name at /Users/asidie/.volta/bin/node. To ensure your commands work as expected, please move ~/.volta/bin to the start of your PATH.
Environment:
- macOS Sequoia 15.6.1
- terminal emulator: macOS Terminal.app
- nushell version 0.106.1
- a fresh installation of Volta 2.0.2
Parts of my config.nu that seem relevant for Volta:
# See https://www.nushell.sh/book/configuration.html
use std/util "path add"
# macOS stores expected paths in `/etc/paths`
$env.PATH = open /etc/paths | lines
# Cargo (Rust)
path add '~/.cargo/bin'
path add '~/bin'
# uv (Python package manager)
path add '~/.local/bin'
# Volta : manages Node.js and JavaScript tools
$env.VOLTA_HOME = '~/.volta'
path add $"($env.VOLTA_HOME)/bin"Comments:
- The warning shown above is unexpected to me, because there (presumably) was no previous
nodeinstalled there. - The warning string makes me wonder if there is any confusion around
~expansion. - Could this be nushell related?
- I recognize I have not provided a water-tight start-to-finish replication. But this is an ok start.
Possibly relevant nushell differences:
- nu still expands
~to the user's home directory - nu uses
$env.HOMEinstead of$HOMEas is the case for POSIX shells - nu uses
$env.PATHand tracks this as a list of strings, manipulable via thepathcommand
Metadata
Metadata
Assignees
Labels
No labels