title: How do I install jest?
body: <p>Been trying to install <strong>jest</strong> with this command:</p>
  <p><code>npm i --global jest</code></p>
  <p>and get these messages:</p>
  <pre><code>npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
  npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
  npm WARN deprecated har-validator@5.1.5: this library is no longer supported
  /Users/GRW/.nvm/versions/node/v6.11.1/bin/jest -&gt; /Users/GRW/.nvm/versions/node/v6.11.1/lib/node_modules/jest/bin/jest.js
  npm WARN jsdom@16.4.0 requires a peer of canvas@^2.5.0 but none is installed. You must install peer dependencies yourself.
  npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
  npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
  
  + jest@26.4.2
  updated 1 package in 32.731s
  </code></pre>
  <p>Have tried manually installing peer dependencies with:</p>
  <pre><code>npm i --save --global canvas@^2.5.0
  npm i --save --global bufferutil@^4.0.1
  npm i --save --global utf-8-validate@^5.0.2
  </code></pre>
  <p>but still am unable to install <strong>jest</strong>.</p>
  <p>How do I install <strong>jest</strong>?</p>
  <p><strong>EDIT</strong>: Forget about the global install and the peer dependency warnings go away, but I still get:
  <strong>-bash: jest: command not found</strong></p>