title: failed to install with npm, invalid json response
body: <p>I had already install npm before, but somehow I had to uninstall it for some reason.
  Now, i tried to install npm again to create react app with this command.</p>
  <blockquote>
  <p><code>npx create-react-app ip_tracker</code></p>
  </blockquote>
  <p>On a halfway installation I found this error</p>
  <pre><code>npm ERR! code FETCH_ERROR
  npm ERR! errno FETCH_ERROR
  npm ERR! invalid json response body at https://registry.npmjs.org/@babel%2fpreset-react reason: Unexpected end of JSON input
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/ngebelcilik/.npm/_logs/2020-11-27T14_34_28_241Z-debug.log
  </code></pre>
  <p>Here's the logs</p>
  <pre><code>0 verbose cli [
  0 verbose cli   '/usr/bin/node',
  0 verbose cli   '/usr/share/nodejs/npm/bin/npm-cli.js',
  0 verbose cli   'exec',
  0 verbose cli   '--',
  0 verbose cli   'create-react-app',
  0 verbose cli   'ip_tracker'
  0 verbose cli ]
  1 info using npm@7.0.11
  2 info using node@v12.19.0
  3 timing config:load:defaults Completed in 7ms
  4 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 10ms
  5 timing config:load:builtin Completed in 10ms
  6 timing config:load:cli Completed in 8ms
  7 timing config:load:env Completed in 3ms
  8 timing config:load:project Completed in 4ms
  9 timing config:load:file:/home/ngebelcilik/.npmrc Completed in 1ms
  10 timing config:load:user Completed in 1ms
  11 timing config:load:file:/etc/npmrc Completed in 1ms
  12 timing config:load:global Completed in 1ms
  13 timing config:load:cafile Completed in 1ms
  14 timing config:load:validate Completed in 1ms
  15 timing config:load:setUserAgent Completed in 2ms
  16 timing config:load:setEnvs Completed in 4ms
  17 timing config:load Completed in 44ms
  18 verbose npm-session 9047ea92ff92abbf
  19 timing npm:load Completed in 86ms
  20 http fetch GET 200 https://registry.npmjs.org/create-react-app 835ms
  21 timing arborist:ctor Completed in 4ms
  22 timing arborist:ctor Completed in 1ms
  23 timing arborist:ctor Completed in 1ms
  24 timing command:exec Completed in 416430ms
  25 verbose stack Error: command failed
  25 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/share/nodejs/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
  25 verbose stack     at ChildProcess.emit (events.js:314:20)
  25 verbose stack     at maybeClose (internal/child_process.js:1021:16)
  25 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
  26 verbose cwd /home/ngebelcilik
  27 verbose Linux 5.4.0-51-generic
  28 verbose argv &quot;/usr/bin/node&quot; &quot;/usr/share/nodejs/npm/bin/npm-cli.js&quot; &quot;exec&quot; &quot;--&quot; &quot;create-react-app&quot; &quot;ip_tracker&quot;
  29 verbose node v12.19.0
  30 verbose npm  v7.0.11
  31 error code 1
  32 error path /home/ngebelcilik
  33 error command failed
  34 error command sh -c create-react-app ip_tracker
  35 verbose exit 1
  </code></pre>
  <p>I already doing research on this error, it's similiar with <a href="https://stackoverflow.com/questions/64625539/npm-err-invalid-json-response-body-at-http-registry-npmjs-org-ansi-escapes-re">this</a> problem, but this problem happened everytime I install any npm packages (not just react).</p>