Skip to content

Can't Start the Extension due to ENOENT #542

@CHC383

Description

@CHC383

Describe the bug

When I open VSCode, it says

There was an error during Vitest startup. Check the output for more details.

Please let me know if there are better ways to debug or collect more details.

Reproduction

This seems to be related to the environment, specifically the oh-my-zsh framework.

This is on:
MacOS: 15.1.1
VSCode: 1.95.3
Vitest extension: 1.8.1
Vitest: 2.1.5

Output

[INFO 2:33:12 PM] [API] Running Vitest v2.1.5 (xxx/vitest.config.ts) with Node.js@: node () {
	for func in _omz_nvm_load nvm node npm npx pnpm pnpx yarn corepack
	do
		if (( $+functions[$func] ))
		then
			unfunction $func
		fi
	done
	[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
	_omz_nvm_setup_completion
	_omz_nvm_setup_autoload
	if [[ "$0" != _omz_nvm_load ]]
	then
		"$0" "$@"
	fi
} 
[Error 2:33:12 PM] [API] [Error Error] spawn node () {
	for func in _omz_nvm_load nvm node npm npx pnpm pnpx yarn corepack
	do
		if (( $+functions[$func] ))
		then
			unfunction $func
		fi
	done
	[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
	_omz_nvm_setup_completion
	_omz_nvm_setup_autoload
	if [[ "$0" != _omz_nvm_load ]]
	then
		"$0" "$@"
	fi
} ENOENT
Error: spawn node () {
	for func in _omz_nvm_load nvm node npm npx pnpm pnpx yarn corepack
	do
		if (( $+functions[$func] ))
		then
			unfunction $func
		fi
	done
	[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
	_omz_nvm_setup_completion
	_omz_nvm_setup_autoload
	if [[ "$0" != _omz_nvm_load ]]
	then
		"$0" "$@"
	fi
} ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[Error 2:33:12 PM] [Error Error] spawn node () {
	for func in _omz_nvm_load nvm node npm npx pnpm pnpx yarn corepack
	do
		if (( $+functions[$func] ))
		then
			unfunction $func
		fi
	done
	[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
	_omz_nvm_setup_completion
	_omz_nvm_setup_autoload
	if [[ "$0" != _omz_nvm_load ]]
	then
		"$0" "$@"
	fi
} ENOENT
Error: spawn node () {
	for func in _omz_nvm_load nvm node npm npx pnpm pnpx yarn corepack
	do
		if (( $+functions[$func] ))
		then
			unfunction $func
		fi
	done
	[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
	_omz_nvm_setup_completion
	_omz_nvm_setup_autoload
	if [[ "$0" != _omz_nvm_load ]]
	then
		"$0" "$@"
	fi
} ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Version

1.8.1

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions