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 馃槣
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.
Most helpful comment
I forgot about this commit ;) https://github.com/react-community/create-react-native-app/commit/1609cef0b5e4429631516b3edbed43248e32aab4
you can specify
--package-managerwhen runningcreate-react-native-appif you want! will cut a release with this shortly