[英]Trouble running luarocks 2.2.0 in Windows - 'pwd' not recognized
我在64位Windows 7中安裝了luarocks,並且所有安裝均正確,但是當我嘗試運行luarocks時,出現以下錯誤:
'pwd' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\Lua\5.1\lua: ... Files (x86)\Lua\5.1\lua/luarocks\fs\win3
2\tools.lua:24: attempt to index local 'directory' (a nil value)
stack traceback:
... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:24: in function
'command_at'
... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:125: in function
<... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:124>
(tail call): ?
... Files (x86)\Lua\5.1\lua/luarocks\fs\win32\tools.lua:147: in function
'make_dir'
...am Files (x86)\Lua\5.1\lua\luarocks\command_line.lua:30: in function
'is_writable'
...am Files (x86)\Lua\5.1\lua\luarocks\command_line.lua:76: in function
'run_command'
C:\Program Files (x86)\Lua\5.1\luarocks.lua:20: in main chunk
[C]: ?
'"lua5.1"' is not recognized as an internal or external command,
operable program or batch file.
我真的不確定自己在做什么錯,我已經在互聯網上搜尋答案,卻一無所獲。
我將工具目錄添加到Windows路徑變量中,從而解決了該問題。 由於其他原因,我仍然無法讓懶漢工作,但是我將在另一個問題中發布這些問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.