无法在Linux Ubuntu 22.04上安装Shopify/CLI
下面是安装它的命令:
npm init @shopify/app@latest -- --template node
错误如下:
file:///home/mycomputername/.npm/_npx/f27a05a5c3c9c53d/node_modules/@shopify/cli-
kit/dist/index-eb280c22.js:14374
output += colorJson(stringifyMessage(enumToken.value) ?? {});
^
SyntaxError: Unexpected token '?'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
npm ERR! code 1
npm ERR! path /home/mycomputername/Desktop/newshopifyapp
npm ERR! command failed
npm ERR! command sh -c create-app "--template" "node"
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mycomputername/.npm/_logs/2022-06-22T15_18_41_596Z-debug-0.log
任何帮助都将不胜感激。
亲切的问候,费尔南多
更新NodeJs的技巧多亏了@FabioFillipi。