Skip to content

Instantly share code, notes, and snippets.

@ksuzushima
Last active June 23, 2021 11:54
Show Gist options
  • Save ksuzushima/36c777a86b89d63402589456998ef9e4 to your computer and use it in GitHub Desktop.
Save ksuzushima/36c777a86b89d63402589456998ef9e4 to your computer and use it in GitHub Desktop.
nodebrew ls で `Use of uninitialized value $a1 in numeric comparison (<=>) at /Users/(ユーザ)/.nodebrew/current/bin/nodebrew line 675.` が出る #nodebrew
$ nodebrew ls

Use of uninitialized value $b1 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 678.
Use of uninitialized value $a1 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 678.
Use of uninitialized value $a1 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 678.
.DS_Store
v6.3.1
v7.10.0
v8.2.1
v10.4.0

こういうエラーが出る。これを見て解決 List installed version error (cause by .DS_Store) #36

.DS_Store ファイルを表示する設定になっていると出るらしいので、

$ rm ~/.nodebrew/node/.DS_Store

# or

$ rm /usr/local/var/nodebrew/node/.DS_Store

自分のケースではここにある .DS_Store ファイルを削除してエラー解消

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment