我想开始使用foundation 4,所以我安装了Ruby和Sass。
安装Sass gem后,我在docpad generate上得到以下错误消息:
error: An error occured:
Error: spawn ENOENT
at errnoException (child_process.js:948:11)
at Process.ChildProcess._handle.onexit (child_process.js:739:34)
→ [2013-05-31 13:23:20.812] [C:\Users\USERDIR\AppData\Roaming\npm\node_modules\docpad\out\lib\docpad.js] [DocPad.log]
error: An error occured:
Error: spawn ENOENT
at errnoException (child_process.js:948:11)
at Process.ChildProcess._handle.onexit (child_process.js:739:34)
→ [2013-05-31 13:23:20.820] [C:\Users\USERDIR\AppData\Roaming\npm\node_modules\docpad\out\lib\docpad.js] [DocPad.log]我想使用sass在docpad中生成基础。我试着使用了这个基础文档框架:https://github.com/axyz/zurb-foundation.docpad
是什么导致了这个问题?我该如何解决它?
发布于 2013-05-31 21:18:16
这可能与这个问题相同- https://github.com/docpad/docpad-plugin-sass/issues/6 - DocPad无法自动检测您的sass安装路径,因此您必须通过在docpad configuration file中添加以下内容来手动指定它
plugins:
sass:
sassPath: 'theValue'
scssPath: 'theValue'
compass: 'theValue'发布于 2013-10-30 06:21:54
一个有点老的问题,然而,我刚刚更新了https://github.com/axyz/zurb-foundation.docpad,以便支持FoundationV4.3.2,现在它似乎工作得很好。
然而,我不得不从纯粹的sass切换到nodesass实现(手动更新foundation的源代码,也许可以切换到git子模块)。我不得不切换,不仅是因为性能原因,还因为我在使用sass插件时遇到了问题:每当有像example.css.scss这样的文件需要解析时,它就会在docpad run期间卡住
https://stackoverflow.com/questions/16856337
复制相似问题