coc-extensions / coc-powershell

PowerShellEditorService integration for coc.vim
MIT License
58 stars 9 forks source link

can not install due to nodes problem #119

Closed jmwatte closed 3 years ago

jmwatte commented 3 years ago

System Details

NeoVim_:NVIM v0.4.4

Issue Description

can not install coc-powershell with let g:coc_global_extensions=['coc-powershell']

Expected Behaviour

should install

Actual Behaviour

get this log file....

npm resolution error report

2021-01-07T22:09:00.571Z

Found: @types/node@10.17.50 node_modules/@types/node dev @types/node@"~10.17.19" from the root project @types/node@"*" from @types/follow-redirects@1.13.0 node_modules/@types/follow-redirects dev @types/follow-redirects@"^1.8.0" from the root project

Could not resolve dependency: dev coc.nvim@"~0.0.77" from the root project

Conflicting peer dependency: @types/node@10.12.0 node_modules/@types/node peer @types/node@"10.12.0" from coc.nvim@0.0.80 node_modules/coc.nvim

Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{ "code": "ERESOLVE", "current": { "name": "@types/node", "version": "10.17.50", "location": "node_modules/@types/node", "dependents": [ { "type": "dev", "name": "@types/node", "spec": "~10.17.19", "from": { "location": "C:\Users\JMWINT~1\AppData\Local\Temp\coc-powershell-Ivsm6i" } }, { "type": "prod", "name": "@types/node", "spec": "*", "from": { "name": "@types/follow-redirects", "version": "1.13.0", "location": "node_modules/@types/follow-redirects", "dependents": [ { "type": "dev", "name": "@types/follow-redirects", "spec": "^1.8.0", "from": { "location": "C:\Users\JMWINT~1\AppData\Local\Temp\coc-powershell-Ivsm6i" } } ] } } ] }, "edge": { "type": "dev", "name": "coc.nvim", "spec": "~0.0.77", "error": "MISSING", "from": { "location": "C:\Users\JMWINT~1\AppData\Local\Temp\coc-powershell-Ivsm6i" } }, "peerConflict": { "name": "@types/node", "version": "10.12.0", "whileInstalling": { "name": "coc-powershell", "version": "0.1.4", "path": "C:\Users\JMWINT~1\AppData\Local\Temp\coc-powershell-Ivsm6i" }, "location": "node_modules/@types/node", "dependents": [ { "type": "peer", "name": "@types/node", "spec": "10.12.0", "from": { "name": "coc.nvim", "version": "0.0.80", "whileInstalling": { "name": "coc-powershell", "version": "0.1.4", "path": "C:\Users\JMWINT~1\AppData\Local\Temp\coc-powershell-Ivsm6i" }, "location": "node_modules/coc.nvim", "dependents": [] } } ] }, "strictPeerDeps": false, "force": false }

jmwatte commented 3 years ago

Solved it by reinstalling nodes.