简体   繁体   English

我收到错误消息:“[coc.nvim] build/index.js 未找到,请通过以下方式安装依赖项并编译 coc.nvim:yarn install”

[英]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.

相关问题 neovim [coc.nvim] build/inderx.js 未找到,请安装依赖项并编译 coc.nvim: yarn install - neovim [coc.nvim] build/inderx.js not found, please install dependencies and compile coc.nvim : yarn install 如何在Ghost安装中重新启动index.js文件? - How do I restart an index.js file in a Ghost install? 我正在尝试通过运行“yarn”在 react web 应用程序中安装依赖项,但出现此错误,有人可以帮助我解决该问题 - Am trying to install dependencies in a react web app by running "yarn" but i get this error ,could someone help me on how to solve it 为什么我会收到这些错误:“deasync”和“node build.js”、“fsevents”和“node install”、“node-gyp”、“yarn add”上的“make”错误 - Why do I get these errors: "deasync" & "node build.js", "fsevents" & "node install", "node-gyp", "make" errors on "yarn add" 在纱线中安装所有未满足的依赖项 - Install all unmet dependencies in yarn 将 devDependencies 和依赖项与 yarn 一起安装 - Install devDependencies and dependencies together with yarn 当我只需要构建时,为什么 yarn 会安装开发依赖项? - Why will yarn install dev dependencies when I just need the builds? 我的路由 index.js 文件出错(找不到模块) - My routes index.js file gives error (Module not found) 尝试运行节点index.js时找不到错误 - Not Found Error when trying to run node index.js 这个cordova构建错误\\ ip-regex \\ index.js:3是什么? - What is this cordova build error \ip-regex\index.js:3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM