如何安装Zurb Foundation CLI

时间:2019-01-06 20:50:03

标签: npm zurb-foundation zurb-foundation-6

我正在尝试使用npm安装Zurb Foundation CLI。 安装似乎进行得很好,但是,当我尝试运行Foundation命令时,事情变得很糟。

foundation -v
/usr/local/lib/node_modules/foundation-cli/node_modules/terminal-kit/lib/detectTerminal.js:179
exports.getParentTerminalInfo = async function getParentTerminalInfo( callback ) {
                                  ^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/foundation-cli/node_modules/terminal-kit/lib/termkit.js:53:26)

1 个答案:

答案 0 :(得分:1)

请升级Node.js和npm。

a. Formula (Numeric) is equal to 1 then b. Formula = Case when {item.vendorcode}='CE263AG' OR {item.vendorcode}='51640A' then 1 else 0 end 是ECMAScript的一项新功能,仅在最新的Node.js版本中可用。