NodeJS 语法错误:意外的标识符-在Windows上安装shopify Cli时出错

pgccezyw  于 2023-05-22  发布在  Node.js
关注(0)|答案(1)|浏览(114)

我尝试在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

我该怎么解决这个问题?

相关问题