Getting an error - /usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13
See original GitHub issueWhat’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
- Type this command npx ignite-cli new PizzaApp
ignite doctor
results:
System
platform darwin
arch x64
cpu 8 cores Intel® Core™ 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
We’ve had the same issue in our team and managed to make it work after few hours of research and errors together with @CezaryKnapik.
Before all check if you have global dependencies of your package managers (better use both)
yarn global list
andnpm -g ls
and proceed with steps accordingly.npx ignite-cli new MyApp
worked like a charm. I’ve also updated node, npm and yarn versions to the latest, but i don’t think it had any influence on the matter 😃I hope our team’s struggles will save you some time.
Thanks you! this help me a lot.