vim-prettier
vim-prettier copied to clipboard
How to install plugin without issues?
Do you want to request a feature or report a bug? BUG
What is the current/expected behavior? I should be able to install the plug in without any issue but it throws a exception check further down
I use vimplug
Plug 'prettier/vim-prettier', { 'do': 'npm install' }
when I run :Prettier I get
Prettier: failed to parse buffer
What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-beta
What version of prettier are you using - (output of :PrettierCliVersion) ?
2.2.1
What is your prettier executable path - (output of :PrettierCliPath) ?
prettier
Did this work in previous versions of vim-prettier and/or prettier ? Maybe
thus is the error output
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/prettier
npm ERR! prettier@"^2.0.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@"^1.15.0" from @prettier/[email protected]
npm ERR! node_modules/@prettier/plugin-php
npm ERR! @prettier/plugin-php@"^0.11.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/user/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-03-04T15_32_17_641Z-debug.log
shell returned 1
In package.json , delete the line with prettier/plugin-php if you don't need PHP
I works for me ;)
So you compile it yourself? I usually use vim-plug for install so how would I do this?
In either case it the issue remains.
@LeducH this has been fixed by a dependency upgrade - please can you verify and maybe close this