Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
425 stars 126 forks source link

[Bug]: command npm/yarn run dev is not working #1451

Closed jdrathod1992 closed 1 year ago

jdrathod1992 commented 1 year ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

App

Expected behavior

It should start App.

Actual behavior

It didn't work, and through ngrok error. First I tried with npm then moved to yarn.

Stack trace

$ yarn create @shopify/app
yarn create v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "@shopify/create-app@3.44.1" with binaries:
      - create-app

Welcome. Let’s get started by naming your app project. You can change it later.

  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/Dell/AppData/Local/Yarn/Data/global/node_modules/i
  ode             nk/build/components/App.js:56:27)
 - (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/ink/build/hooks/u
  se-input.js:38:9)
 -invokePassiveEffect (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_module
  reate              s/react-reconciler/cjs/react-reconciler.development.js:160
                     54:20)
 -Object.invokeGuardedCa (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_mod
  lbackProd             ules/react-reconciler/cjs/react-reconciler.development.
                        js:12101:10)
 -invokeGuardedCal (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/r
  back            eact-reconciler/cjs/react-reconciler.development.js:12292:31)

 -flushPassiveEffec
  sImpl            (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/r
                   eact-reconciler/cjs/react-reconciler.development.js:16141:9)
 -unstable_runWithPr (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules
  iority            /scheduler/cjs/scheduler.development.js:468:12)
 -runWithPrior (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/react
  ty          -reconciler/cjs/react-reconciler.development.js:2495:10)
 -flushPassiveEff (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/re
  cts            act-reconciler/cjs/react-reconciler.development.js:16014:14)
 - (C:/Users/Dell/AppData/Local/Yarn/Data/global/node_modules/react-reconciler/
  cjs/react-reconciler.development.js:15891:11)

╭─ 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                     │
│                                                                              │
│  To investigate the issue, examine this stack trace:                         │
│    at handleSetRawMode (Users/Dell/AppData/Local/Yarn/Data/global/node_modu  │
│    les/ink/build/components/App.js:56)                                       │
│    at (Users/Dell/AppData/Local/Yarn/Data/global/node_modules/ink/build/hoo  │
│    ks/use-input.js:38)                                                       │
│    at invokePassiveEffectCreate (Users/Dell/AppData/Local/Yarn/Data/global/  │
│    node_modules/react-reconciler/cjs/react-reconciler.development.js:16054)  │
│    at invokeGuardedCallbackProd (Users/Dell/AppData/Local/Yarn/Data/global/  │
│    node_modules/react-reconciler/cjs/react-reconciler.development.js:12101)  │
│    at invokeGuardedCallback (Users/Dell/AppData/Local/Yarn/Data/global/node  │
│    _modules/react-reconciler/cjs/react-reconciler.development.js:12292)      │
│    at flushPassiveEffectsImpl (Users/Dell/AppData/Local/Yarn/Data/global/no  │
│    de_modules/react-reconciler/cjs/react-reconciler.development.js:16141)    │
│    at unstable_runWithPriority (Users/Dell/AppData/Local/Yarn/Data/global/n  │
│    ode_modules/scheduler/cjs/scheduler.development.js:468)                   │
│    at runWithPriority (Users/Dell/AppData/Local/Yarn/Data/global/node_modul  │
│    es/react-reconciler/cjs/react-reconciler.development.js:2495)             │
│    at flushPassiveEffects (Users/Dell/AppData/Local/Yarn/Data/global/node_m  │
│    odules/react-reconciler/cjs/react-reconciler.development.js:16014)        │
│    at (Users/Dell/AppData/Local/Yarn/Data/global/node_modules/react-reconci  │
│    ler/cjs/react-reconciler.development.js:15891)                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

error Command failed.
Exit code: 1
Command: C:\Users\Dell\AppData\Local\Yarn\bin\create-app
Arguments:
Directory: E:\xampp\htdocs
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Reproduction steps

1. 2. 3.

Operating System

Windows 10

Shopify CLI version (check your project's package.json if you're not sure)

3.44.1

Shell

Git Bash

Node version (run node -v if you're not sure)

v16.17.0

What language and version are you using in your application?

Node, PHP

Arkham commented 1 year ago

Hi @jdrathod1992, git bash is currently unsupported, please try using Powershell.