css - 无法使用 Foundation CSS 创建新元素

标签 css frameworks zurb-foundation

我刚刚开始使用 Foundation CSS 框架。所有安装都很好,但是当我尝试创建我的第一个元素时,我收到了这个错误。

foundation new
/usr/local/lib/node_modules/foundation-cli/lib/commands/info.js:7
module.exports = function(args = {}) {
                               ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/foundation-cli/lib/index.js:4:9)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

谢谢大家。

最佳答案

看起来你的 nodejs 已经过时了。检查您正在运行的版本。如果它早于 6,升级并删除旧版本。它应该有效。

关于css - 无法使用 Foundation CSS 创建新元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44208382/

相关文章:

javascript - 单击其他 div 时触发对不同元素的单击

c# - List<T>.InsertRange() 或设计决策中的错误?

javascript - midori js框架支持chrome浏览器吗?

php - 如何在codeigniter中使用事件类制作if else菜单

css - 如何将动画 SVG 定位在 Foundation 6 元素后面?

jquery - Foundation 5 - 将顶部导航与 Canvas 外相结合?

asp.net - 有没有一种优雅的方法来在 ASP.net 中实现可选择的选项卡/菜单

html - 下 zipper 接显示不正确

css - 使用 :checked to toggle CSS for an element anywhere on the page?

html - 轨道 slider 中的中心文本和按钮元素?