You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

运行npm init @shopify/app@latest时遇Ink模块Raw Mode不支持错误

解决npm init @shopify/app@latest的Raw Mode不支持错误

执行命令npm init @shopify/app@latest时出现以下错误:

ERROR Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default. Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported
       
 - Read about how to prevent this error on
   https://github.com/vadimdemedes/ink/#israwmodesupported
 -App.handleSetRaw (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/n
  ode             ode_modules/ink/build/components/App.js:56:27)
 - (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_modules/ink/
  build/hooks/use-input.js:38:9)
 -invokePassiveEffect (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53
  reate              d/node_modules/react-reconciler/cjs/react-reconciler.devel
                     opment.js:16054:20)
 -Object.invokeGuardedCa (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9
  lbackProd             c53d/node_modules/react-reconciler/cjs/react-reconciler
                        .development.js:12101:10)
 -invokeGuardedCal (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/n
  back            ode_modules/react-reconciler/cjs/react-reconciler.development
                  .js:12292:31)
 -flushPassiveEffec (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/
  sImpl            node_modules/react-reconciler/cjs/react-reconciler.developme
nt.js:16141:9)
 -unstable_runWithPr
  iority            (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/
                    node_modules/scheduler/cjs/scheduler.development.js:468:12)
 -runWithPrior (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_
  ty          modules/react-reconciler/cjs/react-reconciler.development.js:2495
              :10)
 -flushPassiveEff (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/no
  cts            de_modules/react-reconciler/cjs/react-reconciler.development.j
                 s:16014:14)
 - (C:/Users/HP/AppData/Local/npm-cache/_npx/f27a05a5c3c9c53d/node_modules/reac
  t-reconciler/cjs/react-reconciler.development.js:15891:11)

已更新Node、React及Ink模块包,也查阅了官方提示的文档,现寻求解决方法。

可行的解决步骤:

  • 更换终端工具:改用PowerShell、Git Bash或Windows Terminal执行命令,部分默认终端(如CMD)对Raw模式支持不佳
  • 使用非交互式初始化:添加参数跳过交互式流程,执行命令npm init @shopify/app@latest -- --no-interactive
  • 清理npm缓存:先运行npm cache clean --force清除缓存,再重新执行初始化命令
  • 检查终端权限:确保终端拥有足够权限访问输入流,避免权限限制导致Raw模式无法启用

内容的提问来源于stack exchange,提问作者Mohammad Liton

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 01:35:15