Using Expo Go in bare workflow, per the docs it is recommended to prefer expo install
of the Expo CLI over npm install
when installing dependencies. expo install
, however, always installs in production dependencies.
Is there an equivalent to npm install --save-dev
?
I don't seem to find one so the only solution I currently see is, after having installed using expo install
, moving the dependency to devDependencies
and running npm install
again.
From expo install --help
command :
Additional options can be passed to the npm install or yarn add command by using -- For example: expo install somepackage -- --verbose
So you can do expo install {packageName} -- --save-dev
with npm or expo install {packageName} -- --dev
with yarn