Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

expo install development dependencies

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.

like image 452
alexanderdavide Avatar asked Mar 29 '26 19:03

alexanderdavide


1 Answers

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

like image 103
maxime_rougieux Avatar answered Apr 01 '26 08:04

maxime_rougieux