add --save-dev instructions to readme
This commit is contained in:
parent
7eb594d6b5
commit
f04376455d
1 changed files with 10 additions and 2 deletions
|
@ -10,7 +10,15 @@ Atom Shell is a javascript runtime that bundles Node.js and Chromium. You use it
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Download and install the latest build of atom-shell for your OS and symlink it into your PATH:
|
Download and install the latest build of atom-shell for your OS and add it to your projects `package.json` as a `devDependency`:
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install atom-shell --save-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
This is the preferred way to use atom-shell, as it doesn't require users to install atom-shell globally.
|
||||||
|
|
||||||
|
You can also use the `-g` flag (global) to symlink it into your PATH:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install -g atom-shell
|
npm install -g atom-shell
|
||||||
|
@ -52,4 +60,4 @@ console.log(atom)
|
||||||
|
|
||||||
// spawn atom-shell
|
// spawn atom-shell
|
||||||
var child = proc.spawn(atom)
|
var child = proc.spawn(atom)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue