netlify / netlify/cli

netlify init --manual cannot read team and crashes

Open
#8,355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
TypeScript
Stars
1.9k
Forks
474
Avg merge
23h 30m
Merged PRs (30d)
53

Description

Describe the bug

TypeError: Cannot read properties of undefined (reading 'value')
at ListPrompt.getCurrentValue (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/inquirer/lib/prompts/list.js:145:53)
at /Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/operators/map.js:10:37
at OperatorSubscriber._this._next (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/operators/take.js:15:32
at OperatorSubscriber._this._next (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at Interface.handler (/Users/davidvartanian/.local/share/fnm/node-versions/v26.3.0/installation/lib/node_modules/netlify-cli/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js:59:31)
at Interface.emit (node:events:521:24)
at [_onLine] [as _onLine] (node:internal/readline/interface:465:12)

System:
OS: macOS 26.5.2
CPU: (12) arm64 Apple M2 Pro
Binaries:
Node: 26.3.0 - /Users/davidvartanian/.local/state/fnm_multishells/97331_1784808193607/bin/node
npm: 11.16.0 - /Users/davidvartanian/.local/state/fnm_multishells/97331_1784808193607/bin/npm
Browsers:
Chrome: 150.0.7871.129
Safari: 26.5.2
npmGlobalPackages:
netlify-cli: 26.2.0

Steps to reproduce
  1. netlify init --manual

It worked the first time, the second started failing like this.
I logged out and in again but it continues to happen.

Configuration

No response

Environment

System:
OS: macOS 26.5.2
CPU: (12) arm64 Apple M2 Pro
Memory: 132.59 MB / 16.00 GB
Shell: 4.1.2 - /opt/homebrew/bin/fish
Binaries:
Node: 26.3.0 - /Users/davidvartanian/.local/state/fnm_multishells/97331_1784808193607/bin/node
npm: 11.16.0 - /Users/davidvartanian/.local/state/fnm_multishells/97331_1784808193607/bin/npm
pnpm: 11.13.0 - /Users/davidvartanian/Library/pnpm/bin/pnpm
Deno: 2.6.10 - /opt/homebrew/bin/deno
npmGlobalPackages:
netlify-cli: 26.2.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing netlify init --manual, especially the second run, and trace the team-selection prompt associated with the ListPrompt.getCurrentValue error. Confirm the behavior with the reported Netlify CLI version and determine that the command can read and display the team without crashing.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.