nvm: error when iterm2 startup first time on macOS 12.3

Operating system and version:

macOS 12.3 on intel chip

nvm debug output:

nvm --version: v0.39.1
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v16.14.1/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-apple-darwin21.0)'
uname -a: 'Darwin 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64 x86_64'
checksum binary: 'shasum'
OS version: macOS 12.3 21E230
curl: /usr/bin/curl, curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.5 zlib/1.2.11 nghttp2/1.45.1
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/local/bin/git, git version 2.35.1
ls: grep:: No such file or directory
grep: grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} (grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}), grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
awk: /usr/bin/awk, awk version 20200816
nvm current: v16.14.1
which node: ${NVM_DIR}/versions/node/v16.14.1/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v16.14.1/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v16.14.1
npm root -g: ${NVM_DIR}/versions/node/v16.14.1/lib/node_modules

nvm ls output:

->     v16.14.1
default -> lts/* (-> v16.14.1)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v16.14.1) (default)
stable -> 16.14 (-> v16.14.1) (default)
lts/* -> lts/gallium (-> v16.14.1)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.10 (-> N/A)
lts/fermium -> v14.19.0 (-> N/A)
lts/gallium -> v16.14.1

How did you install nvm?

brew install nvm

What steps did you perform?

What happened?

In macOS 12.3, after reboot, run iterm2 first-time, it will show the error msg:

2022-03-16 11:42:35.570 xcodebuild[963:6569] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-16 11:42:35.571 xcodebuild[963:6569] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

then, close iterm2, and run it again, it does not show the error. just show the error on first-time.

What did you expect to happen?

don’t show the error.

Is there anything in any of your profile files that modifies the PATH?

.zshrc

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 25 (10 by maintainers)

Most upvoted comments

I work on Intel chip iMac 2019, not working with Rosetta shell, just zsh

Ok I will close the case, waiting for nodejs or xcode or macos upgrade. Thanks a lot @ljharb

I believe this is unrelated to nvm. I do not have nvm installed and I got the same error the first time I ran a terminal command after reboot. I get the same error each time I run xcodebuild

% xcodebuild                                                                                      [2:31 PM]
2022-03-17 14:31:33.102 xcodebuild[3567:114128] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-17 14:31:33.102 xcodebuild[3567:114128] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Thanks, that’s helpful.

One last thing - in a fresh shell (where you expect the error), what does . $NVM_DIR/nvm.sh --no-use do?

I believe this is unrelated to nvm. I do not have nvm installed and I got the same error the first time I ran a terminal command after reboot. I get the same error each time I run xcodebuild

% xcodebuild                                                                                      [2:31 PM]
2022-03-17 14:31:33.102 xcodebuild[3567:114128] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-17 14:31:33.102 xcodebuild[3567:114128] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

It may be that nvm’s setting in .zshrc calls xcodebuild once on somewhere at boot time

Last login: Wed Mar 16 14:15:23 on ttys000
➜  ~ nvm deactivate
zsh: command not found: nvm
➜  ~ source ~/.nvm/nvm.sh
➜  ~ nvm deactivate
/Users/username/.nvm/*/bin removed from ${PATH}
➜  ~ source ~/.nvm/nvm.sh
➜  ~

after the first-time error shows up, the error is gone. so you see when I run these commands, I cannot reproduce the error.

➜  ~ source ./.nvm/nvm.sh
2022-03-16 14:11:40.926 xcodebuild[1009:6663] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-03-16 14:11:40.926 xcodebuild[1009:6663] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
➜  ~ source ./.nvm/nvm.sh
➜  ~

steps:

  • comment out the nvm part in .zshrc
  • reboot
  • open iterm2, and run source ./.nvm/nvm.sh, got error.
  • run it again, got nothing.

Duplicate of #2720, i think? it’s unavoidable console output due to having xcode installed and using rosetta.