LoginSignup
0
0

Error: Cannot find module 'esbuild' の直し方

Posted at

coc.nvim のエラーを解決しようとしたら、このエラーが起きた。
vimのプラグインマネジャーはdein。
いつもcoc.nvimから yarn install しろと言われるときは、vimで

:call coc#util#install()

する。
そのときに以下のエラーが起きた。

 yarn install v1.22.19
 [1/4] Resolving packages...
 [2/4] Fetching packages...
 [3/4] Linking dependencies...
 warning Workspaces can only be enabled in private projects.
 [4/4] Building fresh packages...
 $ node esbuild.js
 fatal: not a git repository (or any of the parent directories): .git
 Error: Cannot find module 'esbuild'
 Require stack:
 - /home/akaikesan/.cache/dein/repos/github.com/neoclide/coc.nvim/esbuild.js
     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) ........ 6 lines |
 uild.js:97:1)
      at Module._compile (internal/modules/cjs/loader.js:999:30) ......................... 8 lines |
 }
 Done in 3.59s.

[Process exited 0]

ふつうに

/home/akaikesan/.cache/dein/repos/github.com/neoclide/coc.nvim/

のディレクトリまで移動した後、

$ npm install esbuild

したらエラーが出なくなった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0