ITADN

Cannot preview on macos

#2Closeduranus0206 创建于 2025-03-06
U
uranus0206commented
I install swagger-ui-watcher manually by `npm install swagger-ui-watcher -g`. The command will be install on `/usr/local/bin/swagger-ui-watcher` But in my LazyVim after i follow README instructions to install this plugin. I got 'swagger-ui-watcher exited with code 127' when trying to preview my yaml file. I printed the default swagger_ui_watcher_path of init.lua and the command path showed `/Users/mymac/.local/share/nvim/lazy/swagger-preview.nvim/node_modules/.bin/swagger-ui-watcher` which is not the correct one. I need force assign the correct path with `local swagger_ui_watcher_path = vim.fn.system("which swagger-ui-watcher"):gsub("\n", "") ` of swagger-ui-watcher to make it work.
关闭于 2025-03-06 0 条评论