coc.nvimでjsを弄ってたらエラーが出てた。既にissueも上がってたのでそちらを元に対応。
対応
nodeのバージョンが古すぎてyarnが失敗してたのでそちらが原因。nodebrewも古くなっていたのでbrewを使ってそこからアップデートして対応した。
$ brew upgrade $ nodebrew ls-remote $ nodebrew install-binary v15.2.1 Fetching: https://nodejs.org/dist/v15.2.1/node-v15.2.1-darwin-x64.tar.gz ################################# 100.0% Installed successfully $ yarn add @yarnpkg/pnpify yarn add v1.22.10 warning package.json: No license field warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. warning No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... [4/4] 🔨 Building fresh packages... warning No license field success Saved 1 new dependency. info Direct dependencies └─ @yarnpkg/pnpify@2.3.3 info All dependencies └─ @yarnpkg/pnpify@2.3.3 ✨ Done in 0.84s.
問題なく動いた模様。