Ignite: Error: not found: yarn

Created on 31 Mar 2017  路  14Comments  路  Source: infinitered/ignite

Hello,
On Win7 I followed the guide to install ignite, and I did it, but when I try to create a new project I get this error:

Error: not found: yarn

and

(node:5520) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: not found: yarn

Should I install yarn? It does not say anywhere.

bug critical in progress

Most helpful comment

What command to you mean? To create project? Something like this:

ignite new PizzaApp --npm

All 14 comments

Yeah. Yarn dependency is missing from the documentation, but you can get it from here. You may run into other problems after installing Yarn, but those can be filed in separate issues.

951 was submitted in response to this issue.

Should we really be requiring yarn? Or just detecting it's not installed and instead use npm?

It would be great if yarn is not a dependency. yarn has a dependency on node v7, which ignite-cli is not compatible with as it requires v7.6+. So we end up installing both yarn and a node version to use ignite.

Yarn doesn't have a hard node 7 dependency, ignite does though.

This is a bug for sure. yarn was intended to be a nice-to-have. just need to track down where this is failing. Stack traces will help with this. Is this just happening on windows? Does it still happen if you ad --npm to your command?

What command to you mean? To create project? Something like this:

ignite new PizzaApp --npm

Yes. I put --npm because I was having some problems with yarn early on. I wanted a way to test the npm path without uninstalling yarn.

Tried with --npm option (without yarn installed) but I got the same error.

How about if you type: ignite new Without --no-boilerplate --npm?

it worked, but it did not install other packages

Right. --no-boilerplate skips adding the boilerplate. Sounds like the problem might be in the add command.

I think what's happening here is ... when we shell out, node is giving precendence to the node_modules/.bin/react-native executable instead of the global one on the path.

ignite is a very poor written piece of software. after a day wasting time installing it, still not working

Hey @JohnnyTwoShoes
I'm always sad to see someone lose time with anything we work with, rather than gain. Lots of people are able to use Ignite with no problems.

If you'd like to join our community slack, and then DM me, I can do a screen share with you to get you up and running.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawn-tangsc picture shawn-tangsc  路  3Comments

whalemare picture whalemare  路  3Comments

GantMan picture GantMan  路  3Comments

lichao0817 picture lichao0817  路  3Comments

NikitaVr picture NikitaVr  路  3Comments