[Solution] Fix for "local changes in app/yarn.lock" update loop with lazy.nvim #735
vincenzosacco
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
[My "Guide"] Fix for "local changes in app/yarn.lock" loop with lazy.nvim, on WSL2 and build with npm
The Problem
If you use lazy.nvim to manage
markdown-preview.nvim, you may encounter an update loop that eventually breaks the plugin installation.My setup when this problem happened
The Problem
The error starts when Lazy install the plugin but refusing to update, sync, ecc... due to local changes:
If you attempt to fix this by deleting the folder or uninstalling via Lazy, you might end up with a persistent filesystem error that prevents re-installation:
.../lazy/manage/task/fs.lua:9: .../markdown-preview.nvim should be a directory!Solution which worked for me :
Step 1
Step 2
add
&& git restore .at the end of the cmd:build = "cd app && npm install && git restore ."Beta Was this translation helpful? Give feedback.
All reactions