asdf-vm / asdf-vm/asdf-nodejs

npm with "nodejs system" warns about "No version is set"

Open
#435 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
989
Forks
162
PR merge metrics
No merged PRs in 30d

Description

When I configure nodejs to "system" (nodejs 25.9.0 via homebrew) and call `npm` I get a warning about `No version is set for nodejs`:

```
> /opt/homebrew/bin/node -v
v25.9.0

> /opt/homebrew/bin/npm -v
11.12.1

> ~/.asdf/installs/nodejs/20.11.1/bin/npm -v
10.2.4

> asdf list nodejs
*20.11.1

> asdf set -u nodejs 20.11.1
> npm -v
10.2.4

> asdf set -u nodejs system
> npm -v
No version is set for nodejs; please run `asdf set [options] nodejs `
11.12.1
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented `asdf set -u nodejs system` and `npm -v` commands, then trace how the plugin handles the system version and npm executable. Done means using the system Node.js and npm reports the version without the “No version is set for nodejs” warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.