Shopify Slate赢得';t构建、压缩还是启动?
尝试使用Shopify的Slate运行时,它会安装一个新主题,没有错误,但当我们导航到该主题并尝试运行Slate start或Slate zip时,会出现以下错误:Shopify Slate赢得';t构建、压缩还是启动?,shopify,slate,Shopify,Slate,尝试使用Shopify的Slate运行时,它会安装一个新主题,没有错误,但当我们导航到该主题并尝试运行Slate start或Slate zip时,会出现以下错误: .../node_modules/@shopify/theme-lint/index.js:12 module.exports.runAll = function(path, reporter = new Reporter()) { ^
.../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尝试创建新的reporter时发生的?其他任何人遇到此问题?更新节点[和npm]应该可以解决此问题
Slate需要Node 6.x是否已将Node.js更新为最新版本?通过命令行更新无法修复它,但重新下载并安装.dmg修复了它。