ionos-enterprise / ionos-enterprise-cli

⛔️ DEPRECATED: Official ProfitBricks CLI v4.1.0 Release
Apache License 2.0
9 stars 8 forks source link

CLI version 1.2.5 returns wrong version string 1.2.1 #41

Closed Sebbo94BY closed 8 years ago

Sebbo94BY commented 8 years ago

Please create a ToDo list for all updates of the CLI.

It's annoying, that there are always some mistakes.

# npm install -g profitbricks-cli@latest
loadDep:libprofitbricks → ▌ ╢██████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:tunnel-agent → ge ▀ ╢████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:sntp → resolveWit ▌ ╢█████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"3.5.3"})
WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.25","npm":"3.5.3"})
/usr/bin/profitbricks -> /usr/lib/node_modules/profitbricks-cli/profitbricks
/usr/lib
└─┬ profitbricks-cli@1.2.5
  └─┬ prompt@0.2.14
    └─┬ utile@0.2.1
      └─┬ rimraf@2.5.2
        └── glob@7.0.3

It was updated to version 1.2.5, but -V returns still 1.2.1:

# profitbricks -V
1.2.1
jasmingacic commented 8 years ago

You fogot sudo

jasmins-mbp:~ jasmin$ sudo npm install -g profitbricks-cli@latest
Password:
/usr/local/bin/profitbricks -> /usr/local/lib/node_modules/profitbricks-cli/profitbricks
/usr/local/lib
└─┬ profitbricks-cli@1.2.5 
  └─┬ prompt@0.2.14
    └─┬ utile@0.2.1
      └─┬ rimraf@2.5.2
        └── glob@7.0.3 

jasmins-mbp:~ jasmin$ profitbricks -V
1.2.5
Sebbo94BY commented 8 years ago

No, I didn't forgot sudo, because I was already root.

This means the hashtag (#) in front of the command. This will be displayed, if the user is root - else it will display a dollar ($). :)