hamburger

主に日記

macでvscode-leetcode使えるようにした

leetcodeの準備の一環として環境作っておくことにした。

zenn.dev

で、そもそもnodeが入ってないのでプラグインの初期化がコケた。

/bin/sh: node: command not found
Error: The environment doesn't meet requirements.

なのでnodebrewを入れた、という話。

github.com

エラーメッセージでググって、

nodeが入ってないのでプラグインの初期化がコケた

ということに気づいてnodebrewを入れた。

qiita.com

$ 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がわからなかったので調べたらマニュアルを見るコマンドだった

atmarkit.itmedia.co.jp

次はこれもやりたい

kimikimi714.com