infinitered / ignite-bowser

Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
https://infinite.red/ignite
MIT License
615 stars 140 forks source link

Error in starting new project through ignite-cli #335

Closed sonu628 closed 4 years ago

sonu628 commented 4 years ago

on starting a new project through ignite cli by using ignite new DemoApp --debug I am getting error as

an error occurred while installing ignite-bowser boilerplate.
Error: Command failed with exit code 2: ignite add ignite-bowser --debug
    at makeError (/Users/sonu628/.config/yarn/global/node_modules/gluegun/node_modules/execa/lib/error.js:56:11)
    at handlePromise (/Users/sonu628/.config/yarn/global/node_modules/gluegun/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  command: 'ignite add ignite-bowser --debug',
  exitCode: 2,
  signal: undefined,
  signalDescription: undefined,
  stdout: '\u001b[90m17:02:57\u001b[39m \u001b[35m[ignite]\u001b[39m running add command\n' +
    '\u001b[90m17:02:57\u001b[39m \u001b[35m[ignite]\u001b[39m installing /Users/sonu628/Documents/PragatiMasala/DemoApp/DemoApp/node_modules/ignite-bowser from source npm\n' +
    '\u001b[90m17:02:58\u001b[39m \u001b[35m[ignite]\u001b[39m ignite-bowser 5.0.3 on npm.\n' +
    '\u001b[90m17:02:58\u001b[39m \u001b[35m[ignite]\u001b[39m yarn add ignite-bowser --dev\n' +
    '\u001b[31m----------\u001b[39m\n' +
    '\u001b[31mCommand failed: yarn add ignite-bowser --dev\u001b[39m\n' +
    '\u001b[31mwarning reactotron-react-native@4.2.0: This should have been a major version bump\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > react-dev-utils > fork-ts-checker-webpack-plugin > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > @storybook/ui > @storybook/components > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > @storybook/ui > @storybook/components > react-popper-tooltip > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\u001b[39m\n' +
    '\u001b[31mwarning jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\u001b[39m\n' +
    '\u001b[31mwarning jest-expo > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\u001b[39m\n' +
    '\u001b[31mwarning jest-expo > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > prompt-autocompletion > prompt-choices > set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > enquirer > set-value@1.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > enquirer > prompt-question > prompt-choices > set-value@1.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning " > reactotron-mst@3.1.3" has unmet peer dependency "reactotron-core-client@^2.5.0".\u001b[39m\n' +
    '\u001b[31mwarning "reactotron-react-native > react-native-flipper@0.34.0" has incorrect peer dependency "react-native@^0.62.0".\u001b[39m\n' +
    '\u001b[31mwarning " > @react-navigation/stack@5.2.18" has unmet peer dependency "@react-native-community/masked-view@>= 0.1.0".\u001b[39m\n' +
    '\u001b[31mwarning " > @react-navigation/stack@5.2.18" has unmet peer dependency "react-native-gesture-handler@>= 1.0.0".\u001b[39m\n' +
    '\u001b[31mwarning "@storybook/addon-storyshots > @storybook/core@5.3.17" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".\u001b[39m\n' +
    '\u001b[31mwarning "@storybook/react-native-server > @storybook/api@5.3.17" has unmet peer dependency "regenerator-runtime@*".\u001b[39m\n' +
    '\u001b[31mwarning " > @storybook/react-native-server@5.3.17" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".\u001b[39m\n' +
    '\u001b[31merror Command failed with exit code 1.\u001b[39m\n' +
    '\u001b[31m\u001b[39m\n' +
    '\u001b[31m----------\u001b[39m',
  stderr: '- adding \u001b[36mignite-bowser\u001b[39m\n' +
    '✖ \u001b[31mignite-bowser\u001b[39m was not able to be installed. Is it a valid NPM module?',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
error installing boilerplate

on running ignite doctor on repo I get

System
  platform           darwin                                                      
  arch               x64                                                         
  cpu                8 cores      Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz       
  directory          DemoApp      /Users/sonu628/Documents/PragatiMasala/DemoApp 

JavaScript
  node               12.16.3      /Users/sonu628/.nvm/versions/node/v12.16.3/bin/node 
  npm                6.14.4       /Users/sonu628/.nvm/versions/node/v12.16.3/bin/npm  
  yarn               1.22.4       /Users/sonu628/.nvm/versions/node/v12.16.3/bin/yarn 

Ignite
  ignite-cli         3.5.1                                                                                                        /usr/local/bin/ignite                                            
  ignite src         build                                                                                                        /Users/sonu628/.config/yarn/global/node_modules/ignite-cli/build 
  generators         {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}                                                                    

Android
  java               13.0.1       /usr/bin/java 
  android home       -            undefined     
  Error: Command failed: xcodebuild -version
  xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  - child_process.js:303 ChildProcess.exithandler
    child_process.js:303:12

  - events.js:310 ChildProcess.emit
    events.js:310:20

  - child_process.js:1021 maybeClose
    internal/child_process.js:1021:16

  - child_process.js:443 Socket.<anonymous>
    internal/child_process.js:443:11

  - events.js:310 Socket.emit
    events.js:310:20

  - net.js:672 Pipe.<anonymous>
    net.js:672:12

/Users/sonu628/.config/yarn/global/node_modules/gluegun/build/index.js:13
    throw up;
    ^

Error: Command failed: xcodebuild -version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:310:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:443:11)
    at Socket.emit (events.js:310:20)
    at Pipe.<anonymous> (net.js:672:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'xcodebuild -version',
  stderr: "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance\n"
}

is this problem because of not having xcode

fortydegrees commented 4 years ago

I get a similar error

There were errors while generating the project. Run with --debug to see verbose output.

an error occured while installing ignite-bowser boilerplate.
Error: Command failed with exit code 2: ignite add ignite-bowser 
    at makeError (/Users/david/.nvm/versions/node/v12.6.0/lib/node_modules/ignite-cli/node_modules/gluegun/node_modules/execa/lib/error.js:56:11)
    at handlePromise (/Users/david/.nvm/versions/node/v12.6.0/lib/node_modules/ignite-cli/node_modules/gluegun/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  command: 'ignite add ignite-bowser ',
  exitCode: 2,
  signal: undefined,
  signalDescription: undefined,
  stdout: '\u001b[31m----------\u001b[39m\n' +
    '\u001b[31mCommand failed: yarn add ignite-bowser --dev\u001b[39m\n' +
    '\u001b[31mwarning reactotron-react-native@4.2.0: This should have been a major version bump\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > @storybook/ui > @storybook/components > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > react-dev-utils > fork-ts-checker-webpack-plugin > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > webpack > watchpack > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.\u001b[39m\n' +
    '\u001b[31mwarning @storybook/addon-storyshots > @storybook/core > @storybook/ui > @storybook/components > react-popper-tooltip > react-popper > popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\u001b[39m\n' +
    '\u001b[31mwarning jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\u001b[39m\n' +
    '\u001b[31mwarning jest-expo > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\u001b[39m\n' +
    '\u001b[31mwarning jest-expo > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart()\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > enquirer > set-value@1.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > prompt-autocompletion > prompt-choices > set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning solidarity > gluegun > enquirer > prompt-question > prompt-choices > set-value@1.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version.\u001b[39m\n' +
    '\u001b[31mwarning " > reactotron-mst@3.1.3" has unmet peer dependency "reactotron-core-client@^2.5.0".\u001b[39m\n' +
    '\u001b[31mwarning "reactotron-react-native > react-native-flipper@0.34.0" has incorrect peer dependency "react-native@^0.62.0".\u001b[39m\n' +
    '\u001b[31mwarning " > @react-navigation/stack@5.2.18" has unmet peer dependency "@react-native-community/masked-view@>= 0.1.0".\u001b[39m\n' +
    '\u001b[31mwarning " > @react-navigation/stack@5.2.18" has unmet peer dependency "react-native-gesture-handler@>= 1.0.0".\u001b[39m\n' +
    '\u001b[31mwarning "@storybook/addon-storyshots > @storybook/core@5.3.17" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".\u001b[39m\n' +
    '\u001b[31mwarning "@storybook/react-native-server > @storybook/api@5.3.17" has unmet peer dependency "regenerator-runtime@*".\u001b[39m\n' +
    '\u001b[31mwarning " > @storybook/react-native-server@5.3.17" has unmet peer dependency "babel-loader@^7.0.0 || ^8.0.0".\u001b[39m\n' +
    '\u001b[31merror Command failed with exit code 1.\u001b[39m\n' +
    '\u001b[31m\u001b[39m\n' +
    '\u001b[31m----------\u001b[39m',
  stderr: '- \n' +
    '- adding \u001b[36mignite-bowser\u001b[39m\n' +
    '✖ \u001b[31mignite-bowser\u001b[39m was not able to be installed. Is it a valid NPM module?',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
error installing boilerplate
sonu628 commented 4 years ago

I installed Xcode, and linked xcode-command line, now it works fine (with expo), hence closing the issue P.S - anyone knows how to get redux with this boiler plate