nvm icon indicating copy to clipboard operation
nvm copied to clipboard

how to hide the verbose information when execute `nvm install `

Open vitoliu93 opened this issue 2 years ago • 2 comments

Operating system and version:

Macbook M1, MacOS 13.3.1

nvm debug output:

nvm --version: v0.39.3
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'liujiaxi'
${HOME}: /Users/liujiaxi
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/Library/pnpm:${NVM_DIR}/versions/node/v18.14.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/opt/fzf/bin:${HOME}/Library/Android/sdk/emulator:${HOME}/Library/Android/sdk/platform-tools
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.9 (x86_64-apple-darwin22.0)'
uname -a: 'Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64'
checksum binary: 'shasum'
OS version: macOS 13.3.1 (a) 22E772610a
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 7.87.0 (x86_64-apple-darwin22.0) libcurl/7.87.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
wget: not found
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: rm: aliased to rm -i (rm -i)
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/bin/git, git version 2.39.2 (Apple Git-143)
ls: grep:: No such file or directory
grep: grep: aliased to grep --color (grep --color), grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: v18.14.2
which node: ${NVM_DIR}/versions/node/v18.14.2/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v18.14.2/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v18.14.2
npm root -g: ${NVM_DIR}/versions/node/v18.14.2/lib/node_modules

nvm ls output:

       v16.19.1
->     v18.14.2
        v19.7.0
default -> 18 (-> v18.14.2)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v19.7.0) (default)
stable -> 19.7 (-> v19.7.0) (default)
lts/* -> lts/hydrogen (-> N/A)
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.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.0 (-> N/A)
lts/hydrogen -> v18.16.0 (-> N/A)

How did you install nvm?

readme

What steps did you perform?

execute nvm install 12 in iterm2

What happened?

so much and much verbose debug information, and i don't find the opts to hide it. below it is just part of the log info.

array pipestatus=( 0 )
array plugins=( alias-finder common-aliases colored-man-pages copyfile git jump z zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search )
array precmd_functions=( omz_termsupport_precmd omz_termsupport_cwd _zshz_precmd _zsh_autosuggest_start _zsh_highlight_main__precmd_hook )
array preexec_functions=( omz_termsupport_preexec preexec_alias-finder _zsh_highlight_preexec_hook )
prompt=$'%(?:%{\C-[[01;32m%}➜ :%{\C-[[01;31m%}➜ ) %{\C-[[36m%}%c%{\C-[[00m%} $(git_prompt_info)'
local provided_version=12
array tied PSVAR psvar=(  )
reset_color
array readonly reswords
ret=0
association saliases
array signals=( EXIT HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2 ZERR DEBUG )
integer 10 readonly status=0
association readonly sysparams
undefined termcap
association readonly terminfo
association readonly userdirs
association readonly usergroups
local version_not_provided=0
undefined watch
association readonly widgets
array zle_bracketed_paste=( $'\C-[[?2004h' $'\C-[[?2004l' )
array readonly tied ZSH_EVAL_CONTEXT zsh_eval_context=( toplevel shfunc shfunc shfunc cmdsubst shfunc cmdsubst shfunc cmdsubst shfunc )
integer readonly zsh_highlight__memo_feature=1
zsh_highlight__pat_static_bug=false
undefined zsh_scheduled_events
arm64.tar.xz: File name too long
Provided file to checksum does not exist.
Binary download failed, trying source.
Additional options while compiling:  --no-verbose
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: ${NVM_DIR}/.cache/src/node-v12.22.12/node-v12.22.12.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v12.22.12/node-v12.22.12.tar.xz
$>./configure --prefix=/Users/liujiaxi/.nvm/versions/node/v12.22.12 --no-verbose<
./configure: line 3: exec: python: not found
nvm: install v12.22.12 failed!

What did you expect to happen?

hide the log info

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

No

vitoliu93 avatar Jun 01 '23 07:06 vitoliu93

Have you perhaps enabled -x in your shell options?

Either way that array logging stuff isn't something I've ever seen. What's the output of setopt?

ljharb avatar Jun 01 '23 16:06 ljharb

I'm also seeing this behavior while using zsh. Was this ever solved?

salaciataurus avatar Jun 24 '23 23:06 salaciataurus