バージョン管理された人

subversionで管理されてます

nodenvをgit cloneしただけだとinstallサブコマンドが現れない

この手のツールにありがち。 gitからクローンしたものだけだとinstallサブコマンドが現れない。

$ nodenv install
nodenv: no such command 'install'
$ node help
Usage: nodenv <command> [<args>]

Some useful nodenv commands are:
   commands    List all available nodenv commands
   local       Set or show the local application-specific Node version
   global      Set or show the global Node version
   shell       Set or show the shell-specific Node version
   rehash      Rehash nodenv shims (run this after installing executables)
   version     Show the current Node version and its origin
   versions    List installed Node versions
   which       Display the full path to an executable
   whence      List all Node versions that contain the given executable

See 'nodenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/nodenv/nodenv#readme

解決方法

解決する手順は単純で、node-buildプラグインを所定の場所にインストールしてやるだけ。 詳しくはリポジトリを見ればインストール方法が書いてある。 もちろん、nodenvを入れてる前提。

$ mkdir -p (nodenv root)/plugins
$ git clone https://github.com/nodenv/node-build.git (nodenv root)/plugins/node-build
Cloning into '/home/hoge/.nodenv/plugins/node-build'...
remote: Enumerating objects: 116, done.
remote: Counting objects: 100% (116/116), done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 19431 (delta 31), reused 45 (delta 15), pack-reused 19315
Receiving objects: 100% (19431/19431), 3.45 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (12452/12452), done.
$ nodenv help
Usage: nodenv <command> [<args>]

Some useful nodenv commands are:
   commands    List all available nodenv commands
   local       Set or show the local application-specific Node version
   global      Set or show the global Node version
   shell       Set or show the shell-specific Node version
   install     Install a Node version using node-build
   uninstall   Uninstall a specific Node version
   rehash      Rehash nodenv shims (run this after installing executables)
   version     Show the current Node version and its origin
   versions    List installed Node versions
   which       Display the full path to an executable
   whence      List all Node versions that contain the given executable

See 'nodenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/nodenv/nodenv#readme
$ nodenv install --list
0.1.14
0.1.15
0.1.16
0.1.17
0.1.18
0.1.19
0.1.20
0.1.21
0.1.22
0.1.23
0.1.24
0.1.25
...