What's going on?
apple@Apples-MacBook-Pro Template % npx ignite-cli new PizzaApp
· · · · · · · · · · · · · · · · · · 🔥 Ignite 🔥 · · · · · · · · · · · · · · · · · ·
█ Creating PizzaApp using Ignite 6.1.1
█ Powered by Infinite Red - https://infinite.red
█ Using react-native-cli
────────────────────────────────────────────────
🔥 Igniting app
☕️ Baking CocoaPods
/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13
throw up;
^
Error: spawn yarn ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn yarn',
path: 'yarn',
spawnargs: [ 'format' ]
}
Steps to reproduce
ignite doctor results:
System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
directory Template /Users/juggernaut/Desktop/Template
JavaScript (and globally-installed packages)
node 14.14.0 /usr/local/bin/node
npm 6.14.9 /usr/local/bin/npm
expo-cli 4.0.8
ignite-cli 6.1.1
npm 6.14.9
react-native-cli 2.0.1
yarn - not installed
Ignite
ignite-cli 6.1.1 /usr/local/bin/ignite
ignite src build /usr/local/lib/node_modules/ignite-cli/build
Android
java 1.8.0_265 /usr/bin/java
android home - /Users/juggernaut/Library/Android/sdk
iOS
xcode 12.3
cocoapods 1.9.3 /usr/local/bin/pod
Do you have yarn ?
In my case, i don't use yarn, I use npm.
Kindly install yarn and try again.
@rajagopalx thanks! Now it works.
@rajagopalx
I am getting this error now
· · · · · · · · · · · · · · · · · · 🔥 Ignite 🔥 · · · · · · · · · · · · · · · · · ·
█ Creating PizzaApp using Ignite 6.1.1
█ Powered by Infinite Red - https://infinite.red
█ Using react-native-cli
────────────────────────────────────────────────
🔥 Igniting app
🧊 Cooling print nozzles
☕️ Baking CocoaPods
/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13
throw up;
^
yarn run v1.22.10
error Command "format" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
(Use node --trace-uncaught ... to show where the exception was thrown)
ignite doctor
System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
directory Desktop /Users/juggernaut/Desktop
JavaScript (and globally-installed packages)
node 14.14.0 /usr/local/bin/node
npm 6.14.11 /usr/local/bin/npm
expo-cli 4.0.8
ignite-cli 6.1.1
npm 6.14.11
react-native-cli 2.0.1
yarn 1.22.10
yarn 1.22.10 /usr/local/bin/yarn
Ignite
ignite-cli 6.1.1 /usr/local/bin/ignite
ignite src build /usr/local/lib/node_modules/ignite-cli/build
Android
java 1.8.0_265 /usr/bin/java
android home - /Users/juggernaut/Library/Android/sdk
iOS
xcode 12.3
cocoapods 1.9.3 /usr/local/bin/pod
I am getting the same issue:
npx ignite-cli new PizzaApp
· · · · · · · · · · · · · · · · · · 🔥 Ignite 🔥 · · · · · · · · · · · · · · · · · ·
█ Creating PizzaApp using Ignite 6.1.1
█ Powered by Infinite Red - https://infinite.red
█ Using react-native-cli
────────────────────────────────────────────────
🔥 Igniting app
🧊 Cooling print nozzles
☕️ Baking CocoaPods
/home/mk/.npm/_npx/111597/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13
throw up;
^
yarn run v1.22.5
error Command "format" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
System
platform linux
arch x64
cpu 12 cores Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
directory ignite /home/mk/projects/inventory_idea_2021/templates/ignite
JavaScript (and globally-installed packages)
node 12.16.1 /home/mk/.nvm/versions/node/v12.16.1/bin/node
npm 6.14.11 /home/mk/.nvm/versions/node/v12.16.1/bin/npm
create-react-native-app 3.5.1
expo-cli 4.0.17
mongodb-realm-cli 1.2.0
ngrok 3.2.7
npm 6.14.11
react-devtools 4.10.1
react-native-cli 2.0.1
terser 4.7.0
yarn 1.22.5 /usr/bin/yarn
create-next-app 10.0.4
Ignite
ignite-cli 6.1.1 /home/mk/.npm/_npx/112593/bin/ignite
ignite src build /home/mk/.npm/_npx/112593/lib/node_modules/ignite-cli/build
Android
java 11.0.9.1 /usr/bin/java
android home - /home/mk/Android/Sdk
Most helpful comment
Kindly install yarn and try again.