英文:
SyntaxError: Unexpected identifier - Error installing shopify Cli on windows
问题
I'm tryiong to install shopify Cli in windows with this command following the documentation
npm i -g @shopify/cli@pre @shopify/theme@pre
But when I check the Cli version with
shopify version
I get this error message
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
How can I fix this?
英文:
I'm tryiong to install shopify Cli in windows with this command following the documentation
npm i -g @shopify/cli@pre @shopify/theme@pre
But when I check the Cli version with
shopify version
I get this error message
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
How can I fix this?
答案1
得分: 1
已更新节点版本,它起作用了!
英文:
Updated node version and it worked!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论