LoginSignup
1
0

More than 1 year has passed since last update.

【nodebrew】Use of uninitialized value $b1 in numeric comparison (<=>)の解決法

Posted at

不要になったバージョンを削除すると。。。

$ nodebrew ls
v8.9.4
v12.16.3
v14.17.2
v16.15.1

// 指定のバージョンを削除
$ nodebrew clean v8.9.4

// なぜか削除されない??!
$ nodebrew ls
v8.9.4
v12.16.3
v14.17.2
v16.15.1

と言う状況になりまして。。。

一回Finderから削除してみることにしました!
👇は削除後
Screen Shot 2022-07-03 at 21.21.49.png

.DS_Storeが残ったせいかエラー

Finderから削除したからか、理由はよくわかりませんが.DS_Storeが存在しているせいでエラーが発生・・

$ nodebrew ls
Use of uninitialized value $b1 in numeric comparison (<=>) at /Users/gen/.nodebrew/current/bin/nodebrew line 678.
Use of uninitialized value $a1 in numeric comparison (<=>) at /Users/gen/.nodebrew/current/bin/nodebrew line 678.
.DS_Store
v14.17.2
v16.15.1

下記コマンドで.DS_Storeファイルを削除するとエラーがなくなりました:relaxed:

$ rm ~/.nodebrew/node/.DS_Store
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0