hokaccha / nodebrew

Node.js version manager
MIT License
1.06k stars 66 forks source link

List installed version error (cause by .DS_Store) #36

Closed zchee closed 3 years ago

zchee commented 9 years ago

Error is displayed when nodebrew ls

local:
Use of uninitialized value $b1 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 629.
Use of uninitialized value $b2 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 629.
Use of uninitialized value $a1 in numeric comparison (<=>) at /usr/local/bin/nodebrew line 629.
io@.DS_Store
v0.10.33
io@v1.7.1
io@v1.8.1

current: io@v1.8.1

I think caused by there is a DS_Store to /.nodebrew/**

ghost commented 8 years ago

I had have a same problem in mac.

$ cd /Users/username/.nodebrew/node
$ ls -a1
.
..
.DS_Store ←
v0.12.0
v4.3.1

Deleting .DS_Store, it had worked in my mac.