log from lazy.nvim:
rest.nvim 📂 http
C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e -e io.write(_VERSION:sub(5)) : No such file or directory
C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e -e io.write(_VERSION:sub(5)) : No such file or directory
Error: Lua 5.1 interpreter not found at C:/Users/cc/scoop/apps/lua/current
Please set your Lua interpreter with:
luarocks --lua-version=5.1 --local config variables.LUA <d:\path\lua.exe>
Failed installing rest.nvim with `luarocks`.
--------------------------------------------------------------------------------
Trying to build from source.
C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e -e io.write(_VERSION:sub(5)) : No such file or directory
C:\Users\cc\scoop\apps\lua51\current\lua5.1.exe: cannot open e -e io.write(_VERSION:sub(5)) : No such file or directory
Error: Lua 5.1 interpreter not found at C:/Users/cc/scoop/apps/lua/current
Please set your Lua interpreter with:
luarocks --lua-version=5.1 --local config variables.LUA <d:\path\lua.exe>
I hava those installed use scoop:
lua 5.4.7-2 main 2024-09-15 19:18:04
lua-for-windows 5.1.5-52 main 2024-09-13 00:40:11
lua-language-server 3.10.5 main 2024-08-25 15:21:46
lua51 5.1.5 versions 2024-09-15 19:19:19
luarocks 3.11.1 main 2024-09-15 19:18:05
lua51 is installed at:
Directory: C:\Users\cc\scoop\apps\lua51\5.1.5
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2014/5/6 3:54 17920 lua5.1.exe
so I run luarocks --lua-version=5.1 --local config variables.LUA 'C:\Users\cc\scoop\apps\lua51\5.1.5\lua5.1.exe'. and I got:

escaped \ in path to: 'C:\\Users\\cc\\scoop\\apps\\lua51\\5.1.5\\lua5.1.exe'. got the same.
log from lazy.nvim:
I hava those installed use scoop:
lua51 is installed at:
so I run

luarocks --lua-version=5.1 --local config variables.LUA 'C:\Users\cc\scoop\apps\lua51\5.1.5\lua5.1.exe'. and I got:escaped
\in path to:'C:\\Users\\cc\\scoop\\apps\\lua51\\5.1.5\\lua5.1.exe'. got the same.