最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

SyntaxError: Unexpected identifier

网站源码admin29浏览0评论

SyntaxError: Unexpected identifier

SyntaxError: Unexpected identifier

我正在尝试在 documentation

之后使用此命令在 Windows 中安装 shopify CLI
npm i -g @shopify/cli@pre @shopify/theme@pre

但是当我检查 CLI 版本时

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

我该如何解决这个问题?

回答如下:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论