simplify npm install instructions

This commit is contained in:
El RIDO 2019-06-24 07:41:12 +02:00
parent ddb1c550f5
commit fdc532b3c1
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
2 changed files with 2 additions and 3 deletions

View file

@ -12,7 +12,6 @@
"jsdom-global": "^2.1.1",
"jsdom-url": "^2.2.1",
"jsverify": "^0.8.3",
"mime-types": "^2.1.20",
"node-webcrypto-ossl": "^1.0.37"
},
"scripts": {

View file

@ -89,7 +89,7 @@ and jsdom-global locally:
```console
$ npm install -g mocha nyc
$ cd PrivateBin/js
$ npm install jsverify jsdom@9 jsdom-global@2 mime-types node-webcrypto-ossl jsdom-url
$ npm install
```
Example for Debian and Ubuntu, including steps to allow the current user to
@ -101,7 +101,7 @@ $ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
$ ln -s /usr/bin/nodejs /usr/local/bin/node
$ npm install -g mocha nyc
$ cd PrivateBin/js
$ npm install jsverify jsdom@9 jsdom-global@2 mime-types node-webcrypto-ossl
$ npm install
```
To run the tests, just change into the `js` directory and run istanbul: