Skip to content

Commit

Permalink
Merge pull request winstonjs#28 from Shwetajain148/update-readme-for-…
Browse files Browse the repository at this point in the history
…npm-version2

Update instructions for npm version 2 and lower
  • Loading branch information
mostlyjason authored Nov 29, 2017
2 parents 02c7374 + 9434da4 commit 79ad087
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,25 @@ The [winston][1] codebase has been growing significantly with contributions and
$ curl http://npmjs.org/install.sh | sh
```

### Installing winston-loggly
### Installing winston-loggly-bulk

If you are running npm version 3 or higher then run the below command to setup the logging-

``` bash
$ npm install winston
$ npm install winston-loggly-bulk
```

If you are running npm version 2 or lower then run the below command to setup the logging-

``` bash
$ npm install winston-loggly-bulk winston
```
* __Note:__ To check the currrent npm version run the below command-

``` bash
$ npm -v
```

## Run Tests
All of the winston tests are written in [vows][6], and cover all of the use cases described above. You will need to add valid credentials for the various transports included to test/config.json before running tests:

Expand Down

0 comments on commit 79ad087

Please sign in to comment.