我尝试在Windows中安装shopify Cli,下面是documentation命令
npm i -g @shopify/cli@pre @shopify/theme@pre
但是当我用
shopify version
我收到这个错误信息
C:\Program Files (x86)\Nodist\bin\node_modules\@shopify\cli\bin\run.js:5
import runCLI from '../dist/index.js'
^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:749:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:868:12)
at internal/main/run_main_module.js:21:11
我该怎么解决这个问题?
1条答案
按热度按时间plicqrtu1#
更新了节点版本,它工作了!