title: install jest with npm in javascript
body: <p>i try to install <strong><a href="https://i.stack.imgur.com/AHCF0.png" rel="nofollow noreferrer">jest</a></strong> by local or global with npm but it does not install</p>
  <p>my <strong>npm</strong> version is 7.5.2
  and my <strong>node</strong> version is 12.22.5
  also i have <strong>ubuntu</strong></p>
  <p>and i try this commands :</p>
  <pre><code>npm i -D jest
  npm i -g jest
  npm i jest
  </code></pre>
  <p>but jest dont installed</p>
  <p>this is the error :
  alireza@SUCCESS:~/Desktop/test$ sudo npm i -D jest
  [sudo] password for alireza:
  npm ERR! code FETCH_ERROR
  npm ERR! errno FETCH_ERROR
  npm ERR! invalid json response body at <a href="https://registry.npmjs.org/@jest%2ftransform" rel="nofollow noreferrer">https://registry.npmjs.org/@jest%2ftransform</a> reason: Unexpected end of JSON input</p>
  <p>npm ERR! A complete log of this run can be found in:
  npm ERR!     /root/.npm/_logs/2022-02-14T12_19_47_677Z-debug.log</p>
  <p><a href="https://i.stack.imgur.com/AHCF0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AHCF0.png" alt="it is the error" /></a></p>