##Description theia looks for any published npm packages that you are requiring and checks to see if you they are available in your package.json file.
Depending on the options provided, theia can then display the packages, ask you to select what packages you want to install or go ahead and install them on your behalf.
npm install theia -g
$ theia
Found 12 missing packages:
* underscore
* grunt
* body-parser
* winston
* cookie-parser
* gulp-sass
* gulp-rename
* gulp-jsbeautifier
* gulp-eslint
* gulp-inject
* gulp-karma
* gulp-filter
--save: Saves discovered packages as dependencies, and runs npm install.
$ theia --save
[email protected] node_modules/gulp-sass
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
....
--save -i: Promps the user for confirmation, before saving discovered packages as dependencies and running npm install.
--save-dev: Saves discovered packages as dev dependencies, and runs npm install.
$ theia --save-dev
[email protected] node_modules/gulp-sass
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
....
--save-dev -i: Promps the user for confirmation, before saving discovered packages as dev dependencies and running npm install.
--save-dev --save -i: Promps the user to select packages that should be installed as dev dependencies, and packages that should be installed as dependencies. Runs npm install after the user makes their choices.