我想尝试一个用于vim的python的自动完成工具,所以我决定为vim安装coc,所以我通过进入我的.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()但我只是得到了错误
I get the error: "[coc.nvim] build/index.js not found, please install dependencies and complie coc.nvim by: yarn install"所以我试着通过访问他们的网站来安装纱线
yarnpkg.com我去了安装页面
https://yarnpkg.com/getting-started/install我正确地执行了所有步骤,我得到了node.js版本的17.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我不知道刚才发生了什么,所以我继续下一步
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>发布于 2022-04-06 00:33:33
我现在明白插件管理器是如何工作的。一开始,我认为它只是从目录中安装插件,而不认为您可以下载文件,所以我用了很难的方法,最简单的方法是添加
Plugin 'neoclide/coc.vim'然后转到vim命令并键入
PluginInstall就这样
https://stackoverflow.com/questions/71733459
复制相似问题