Shopify Slate 无法构建、压缩或启动?

问题描述 投票:0回答:1

尝试使用 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 尝试创建一个新的记者时?还有人遇到这个吗?

shopify slate-shopify
1个回答
2
投票

更新 Node [和 npm] 应该可以解决这个问题。

Slate 需要 Node 6.x Slate 入门

© www.soinside.com 2019 - 2024. All rights reserved.