[英]I get the error: "[coc.nvim] build/index.js not found, please install dependencies and complie coc.nvim by: yarn install"
I was wanting to try out a autocompletion tool for python for vim, so I decided to install coc for vim, so I installed by going into my.vimrc file and adding我想为 vim 试用 python 的自动完成工具,所以我决定为 vim 安装 coc,所以我通过进入 my.vimrc 文件并添加来安装
call plug#begin(~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'neoclide/coc.nvim', {'branch': 'master', 'do': 'yarn install --frozen-lockfile'}
call plug#end()
but I just get the error但我只是得到错误
I get the error: "[coc.nvim] build/index.js not found, please install dependencies and complie coc.nvim by: yarn install"
So I tried installing yarn by visiting their website所以我尝试通过访问他们的网站来安装纱线
yarnpkg.com
and I went to the installation page我去了安装页面
https://yarnpkg.com/getting-started/install
I followed all the steps correctly, I had the node.js version v17.8.0 and I just get this error:我正确地执行了所有步骤,我有 node.js 版本 v17.8.0,我只是得到这个错误:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\jimmy> corepack enable
PS C:\Users\jimmy> npm i -g corepack
added 1 package, and audited 2 packages in 2s
found 0 vulnerabilities
PS C:\Users\jimmy> yarn init -2
yarn : File C:\Program Files\nodejs\yarn.ps1 cannot be loaded. The file C:\Program Files\nodejs\yarn.ps1 is not
digitally signed. You cannot run this script on the current system. For more information about running scripts and
setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ yarn init -2
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
I had no idea what just happened so I went on with the next step我不知道刚刚发生了什么,所以我继续下一步
PS C:\Users\jimmy> yarn set version stable
yarn : File C:\Program Files\nodejs\yarn.ps1 cannot be loaded. The file C:\Program
Files\nodejs\yarn.ps1 is not
digitally signed. You cannot run this script on the current system. For more information
about running scripts and
setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?
LinkID=135170.
At line:1 char:1
+ yarn set version stable
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\jimmy>
I now understand how plugin managers work.我现在明白插件管理器是如何工作的了。 At first, I thought it only installs plugins from the directory not thinking that you can download files, so I did it the hard way, the most easy way is to add
一开始我以为它只是从目录安装插件,没想到你可以下载文件,所以我很难做到,最简单的方法是添加
Plugin 'neoclide/coc.vim'
and go to vim command and type和 go 到 vim 命令和类型
PluginInstall
and thats it就是这样
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.