I trying to build, yarn build but it shows me
yarn run v1.22.17
error Couldn't find a package.json file in "/home/darth/.config/nvim/plug-config"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I trying to build, yarn build but it shows me
yarn run v1.22.17
error Couldn't find a package.json file in "/home/darth/.config/nvim/plug-config"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I resolved the errby running the command below on nevoim.
:call coc#util#install()
The error is due to the fact that COC is missing some dependencies to function.
\nvim\plugged\coc.nvim
npm install
or yarn install
Restart your VIM or NEOVIM.
You should run yarn install
in coc.nvim directory.
resolved on mac by npm install
check the correct path:
cd ~/.vim/bundle/coc.nvim . cd: no such file or directory: /Users/pawankumar/.vim/bundle/coc.nvim
cd ~/.vim/plugged/coc.nvim/
npm install
For anyone else who is also dumb like me you're supposed to go to C:\Users\user\Appdata\Local\nvim-data\plugged\coc.nvim\
because coc.nvim is a directory apparently. Then you run yarn install
or npm install
and that should install everything necessary for coc to run properly
On windows navigate to your C:\Users\user\AppData\Local\nvim-data\plugged\coc.nvim file and run yarn install
$ sudo apt install nodejs
node -v
if your node version < 14 then follow the below:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
if node version > 14 then continue below
Now you need to make sure you have NPM / YARN installed in the path: ~/.local/share/nvim/plugged/coc.nvim
usually coc.nvim is located here but in case if you cannot find it then there is an easy way:
explorer.exe .
this will open a file explorer of your WSL 2 file tree, on the search bar just enter coc.nvim & search for the location.to install NPM / YARN we just need to enter sudo apt install npm
or sudo apt install yarn
Note: installing YARN did not work for me, So I installed NPM (takes a few minutes to install)
after this i performed npm install in the same path & that's it.it fixed my error.