尝试使用 Shopify 的 Slate 运行,它会安装一个新主题,没有错误,但随后我们导航到该主题并尝试运行 slate start 或 slate zip,我收到此错误:
.../node_modules/@shopify/theme-lint/index.js:12
module.exports.runAll = function(path, reporter = new Reporter()) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
之后还有一些错误代码,但看起来错误是在 theme-link 尝试创建一个新的记者时?还有人遇到这个吗?
更新 Node [和 npm] 应该可以解决这个问题。
Slate 需要 Node 6.x Slate 入门