gpt4 book ai didi

css - Sublime 2 less2css 没有自动编译

转载 作者:太空宇宙 更新时间:2023-11-04 02:21:19 25 4
gpt4 key购买 nike

当我保存我的 style.less 时,代码没有被自动编译。我做错了什么吗?以下是我的 ox.sublime-project 文件中的内容:

{
"folders":
[
{
"path": "projects/example/web"
}
],
"settings":
{
"less2css":
{
"autoCompile":true,
"main_file":"/projects/example/web/style.less",
"minify":false
}
}
}

当我保存我的样式时,我在控制台中看到了这个。less:

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 574, in run_ return self.run(edit)
File "less2css in /Users/jlei/Library/Application Support/Sublime Text 3/Installed Packages/Less2Css.sublime-package", line 57, in run
File "lesscompiler in /Users/jlei/Library/Application Support/Sublime Text 3/Installed Packages/Less2Css.sublime-package", line 152, in convert_one
File "lesscompiler in /Users/jlei/Library/Application Support/Sublime Text 3/Installed Packages/Less2Css.sublime-package", line 254, in convertLess2Css
File "./python3.3/os.py", line 251, in makedirs File "./python3.3/os.py", line 251, in makedirs
File "./python3.3/os.py", line 251, in makedirs
File "./python3.3/os.py", line 262, in makedirs

PermissionError: [Errno 13] Permission denied: '/projects'

最佳答案

会不会是路径名不匹配导致的?首先,您使用的是 "projects/example/web",然后是 "/projects/example/web/style.less"(注意前导斜杠)。

关于css - Sublime 2 less2css 没有自动编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38063515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com