leetcodeの準備の一環として環境作っておくことにした。
で、そもそもnodeが入ってないのでプラグインの初期化がコケた。
/bin/sh: node: command not found Error: The environment doesn't meet requirements.
なのでnodebrewを入れた、という話。
エラーメッセージでググって、
nodeが入ってないのでプラグインの初期化がコケた
ということに気づいてnodebrewを入れた。
$ brew install nodebrew Error: The following directories are not writable by your user: /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 You should change the ownership of these directories to your user. sudo chown -R $(whoami) /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7 And make sure that your user has write permission. chmod u+w /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man7
途中で権限のエラーになったので出力されたコマンドを実行して事なきを得た
$ node -v v17.3.0
ちなみにman
がわからなかったので調べたらマニュアルを見るコマンドだった
次はこれもやりたい