question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting an error - /usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13

See original GitHub issue

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

  1. 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:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

23reactions
bohdan-vasylenkocommented, Jan 22, 2021

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 and npm -g ls and proceed with steps accordingly.

  1. If you have ignite-cli installed globally, make sure you removed the old version and the install a fresh one. (not sure if it really helped, but i did it before the 2 step).
  2. If you have react-native-cli or react-native globally installed, remove it. After that install @react-native-community/cli globally (i’ve used a specific version @4.13.1). It will have a fresh react-native-cli tool in it (looks like they’ve migrated, more on this here https://github.com/react-native-community/cli)
  3. After that 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.

0reactions
jailsonpacacommented, Mar 18, 2021

2. @react-native-community/cli

Thanks you! this help me a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found