Create-react-native-app: Do not force to use `yarn`

Created on 22 Jul 2017  路  6Comments  路  Source: expo/create-react-native-app

Allow users to run the command rather than forcing 馃槂

I think people can type npm i or yarn after doing create-react-native-app myApp

My main concern is due to I want to use pnpm which is fast & saves a lotta disk space than both npm & yarn 馃槈

As a guy doing a lotta projects in react-native I don't think I need to waste space for more node_modules 馃槣

Most helpful comment

I forgot about this commit ;) https://github.com/react-community/create-react-native-app/commit/1609cef0b5e4429631516b3edbed43248e32aab4

you can specify --package-manager when running create-react-native-app if you want! will cut a release with this shortly

All 6 comments

As a guy doing a lotta projects in react-native I don't think I need to waste space for more node_modules 馃槣

lol

I think people can type npm i or yarn after doing create-react-native-app myApp

99% of the time you will be doing this, and this is the behavior of create-react-app, so we aren't going to change this. if you want to add a flag to disable it, then that would be fine! a PR is welcome for that.

I forgot about this commit ;) https://github.com/react-community/create-react-native-app/commit/1609cef0b5e4429631516b3edbed43248e32aab4

you can specify --package-manager when running create-react-native-app if you want! will cut a release with this shortly

Thanks !! I knew there must be some flag but couldn't figure it out 馃槀

pnpm also supported #412

I see this message following an install with pnpm.


ERROR: npm 5 is not supported yet


It looks like you're using npm 5 which was recently released.

Create React Native App doesn't work with npm 5 yet, unfortunately. We
recommend using npm 4 or yarn until some bugs are resolved.

You can follow the known issues with npm 5 at:
https://github.com/npm/npm/issues/16991


According to https://github.com/react-community/create-react-native-app/pull/412#issuecomment-342570957 pnpm is not supported yet.

@vjpr Got busy with other things so couldn't send a PR. Still I tried using pnpm with react-native init & it doesn't work because of this issue so I don't know if its worth the trouble yet. I'm currently using npm & yarn bcz sometimes pnpm has issues as it isn't matured yet for some of my usecases. I have filed an issue there so if it works out. I'll make sure to send a PR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

THPubs picture THPubs  路  4Comments

noelweichbrodt picture noelweichbrodt  路  3Comments

FezVrasta picture FezVrasta  路  3Comments

scf4 picture scf4  路  5Comments

iRoachie picture iRoachie  路  5Comments