Skip to content

Unexpected end of JSON input while parsing near '... ^5.0.0"},"dist":{"in' #1198

Closed
@theBstar

Description

@theBstar

What / Why

While running npm i next. It throws me an Unexpected end of JSON input while parsing near '... ^5.0.0"},"dist":{"in' error.

When

  • When i run npm i next
  • April 23rd 2020 @ 7:47pm IST

Where

O.S.: Ubuntu 19.10 64 bit
npm version 6.14.4
node version 12.16.2
Hardware:

  • Memory: 7.6 GiB
  • Processor: Intel® Core™ i7-9750H CPU @ 2.60GHz × 12
  • Graphics card: GeForce GTX 1650 with Max-Q Design/PCIe/SSE2

How

run npm i next

Current Behavior

It throws the error Unexpected end of JSON input while parsing near '... ^5.0.0"},"dist":{"in'
cat /home/<user>/.npm/_logs/2020-04-23T14_13_31_944Z-debug.log shows

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'i', 'next' ] 2 info using npm@6.14.4 3 info using node@v12.16.2 4 verbose npm-session dabf7815c26582a5 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/next 1625ms (from cache) 8 silly pacote tag manifest for next@latest fetched in 1650ms 9 timing stage:loadCurrentTree Completed in 1664ms 10 silly install loadIdealTree 11 silly install cloneCurrentTreeToIdealTree 12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms 13 silly install loadShrinkwrap 14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms 15 silly install loadAllDepsIntoIdealTree 16 silly resolveWithNewModule next@9.3.5 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/@ampproject%2ftoolbox-optimizer 409ms (from cache) 18 silly pacote version manifest for @ampproject/toolbox-optimizer@2.2.0 fetched in 410ms 19 silly resolveWithNewModule @ampproject/toolbox-optimizer@2.2.0 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-optional-chaining 991ms (from cache) 21 silly pacote version manifest for @babel/plugin-proposal-optional-chaining@7.7.4 fetched in 993ms 22 silly resolveWithNewModule @babel/plugin-proposal-optional-chaining@7.7.4 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/@babel%2fcore 1003ms (from cache) 24 silly pacote version manifest for @babel/core@7.7.2 fetched in 1005ms 25 silly resolveWithNewModule @babel/core@7.7.2 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-object-rest-spread 1009ms (from cache) 27 silly pacote version manifest for @babel/plugin-proposal-object-rest-spread@7.6.2 fetched in 1010ms 28 silly resolveWithNewModule @babel/plugin-proposal-object-rest-spread@7.6.2 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-bigint 1033ms (from cache) 30 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-syntax-dynamic-import 1033ms (from cache) 31 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-nullish-coalescing-operator 1040ms (from cache) 32 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-modules-commonjs 1034ms (from cache) 33 silly pacote version manifest for @babel/plugin-syntax-bigint@7.8.3 fetched in 1037ms 34 silly resolveWithNewModule @babel/plugin-syntax-bigint@7.8.3 checking installable status 35 silly pacote version manifest for @babel/plugin-syntax-dynamic-import@7.2.0 fetched in 1037ms 36 silly resolveWithNewModule @babel/plugin-syntax-dynamic-import@7.2.0 checking installable status 37 silly pacote version manifest for @babel/plugin-transform-modules-commonjs@7.7.0 fetched in 1038ms 38 silly resolveWithNewModule @babel/plugin-transform-modules-commonjs@7.7.0 checking installable status 39 silly pacote version manifest for @babel/plugin-proposal-nullish-coalescing-operator@7.7.4 fetched in 1045ms 40 silly resolveWithNewModule @babel/plugin-proposal-nullish-coalescing-operator@7.7.4 checking installable status 41 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-numeric-separator 1049ms (from cache) 42 silly pacote version manifest for @babel/plugin-proposal-numeric-separator@7.8.3 fetched in 1050ms 43 silly resolveWithNewModule @babel/plugin-proposal-numeric-separator@7.8.3 checking installable status 44 http fetch GET 304 https://registry.npmjs.org/@babel%2fpreset-modules 317ms (from cache) 45 silly pacote version manifest for @babel/preset-modules@0.1.1 fetched in 319ms 46 silly resolveWithNewModule @babel/preset-modules@0.1.1 checking installable status 47 http fetch GET 304 https://registry.npmjs.org/@babel%2fpreset-env 328ms (from cache) 48 http fetch GET 304 https://registry.npmjs.org/@babel%2fpreset-react 315ms (from cache) 49 silly pacote version manifest for @babel/preset-env@7.7.1 fetched in 335ms 50 silly resolveWithNewModule @babel/preset-env@7.7.1 checking installable status 51 silly pacote version manifest for @babel/preset-react@7.7.0 fetched in 321ms 52 silly resolveWithNewModule @babel/preset-react@7.7.0 checking installable status 53 http fetch GET 304 https://registry.npmjs.org/@babel%2fpreset-typescript 307ms (from cache) 54 http fetch GET 304 https://registry.npmjs.org/@babel%2fruntime 306ms (from cache) 55 http fetch GET 304 https://registry.npmjs.org/babel-plugin-transform-define 298ms (from cache) 56 silly pacote version manifest for @babel/preset-typescript@7.7.2 fetched in 309ms 57 silly resolveWithNewModule @babel/preset-typescript@7.7.2 checking installable status 58 silly pacote version manifest for @babel/runtime@7.7.2 fetched in 308ms 59 silly resolveWithNewModule @babel/runtime@7.7.2 checking installable status 60 silly pacote version manifest for babel-plugin-transform-define@2.0.0 fetched in 300ms 61 silly resolveWithNewModule babel-plugin-transform-define@2.0.0 checking installable status 62 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-transform-runtime 1162ms (from cache) 63 silly pacote version manifest for @babel/plugin-transform-runtime@7.6.2 fetched in 1166ms 64 silly resolveWithNewModule @babel/plugin-transform-runtime@7.6.2 checking installable status 65 http fetch GET 304 https://registry.npmjs.org/find-cache-dir 323ms (from cache) 66 http fetch GET 304 https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types 347ms (from cache) 67 http fetch GET 304 https://registry.npmjs.org/browserslist 341ms (from cache) 68 silly pacote version manifest for find-cache-dir@3.3.1 fetched in 327ms 69 silly resolveWithNewModule find-cache-dir@3.3.1 checking installable status 70 http fetch GET 304 https://registry.npmjs.org/css-loader 342ms (from cache) 71 silly fetchPackageMetaData error for css-loader@3.3.0 Unexpected end of JSON input while parsing near '... ^5.0.0"},"dist":{"in' 72 silly pacote version manifest for babel-plugin-transform-react-remove-prop-types@0.4.24 fetched in 353ms 73 silly resolveWithNewModule babel-plugin-transform-react-remove-prop-types@0.4.24 checking installable status 74 http fetch GET 304 https://registry.npmjs.org/fork-ts-checker-webpack-plugin 330ms (from cache) 75 silly pacote version manifest for browserslist@4.8.3 fetched in 350ms 76 silly resolveWithNewModule browserslist@4.8.3 checking installable status 77 http fetch GET 304 https://registry.npmjs.org/jest-worker 333ms (from cache) 78 silly pacote version manifest for fork-ts-checker-webpack-plugin@3.1.1 fetched in 339ms 79 silly resolveWithNewModule fork-ts-checker-webpack-plugin@3.1.1 checking installable status 80 silly pacote version manifest for jest-worker@24.9.0 fetched in 339ms 81 silly resolveWithNewModule jest-worker@24.9.0 checking installable status 82 http fetch GET 304 https://registry.npmjs.org/loader-utils 328ms (from cache) 83 silly pacote version manifest for loader-utils@2.0.0 fetched in 332ms 84 silly resolveWithNewModule loader-utils@2.0.0 checking installable status 85 http fetch GET 304 https://registry.npmjs.org/mini-css-extract-plugin 325ms (from cache) 86 silly fetchPackageMetaData error for mini-css-extract-plugin@0.8.0 Unexpected end of JSON input while parsing near '...tandard-version":"^4.' 87 http fetch GET 304 https://registry.npmjs.org/@babel%2fplugin-proposal-class-properties 2007ms (from cache) 88 silly pacote version manifest for @babel/plugin-proposal-class-properties@7.7.0 fetched in 2011ms 89 silly resolveWithNewModule @babel/plugin-proposal-class-properties@7.7.0 checking installable status 90 http fetch GET 304 https://registry.npmjs.org/native-url 330ms (from cache) 91 http fetch GET 304 https://registry.npmjs.org/mkdirp 331ms (from cache) 92 silly pacote version manifest for mkdirp@0.5.3 fetched in 334ms 93 warn deprecated mkdirp@0.5.3: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) 94 silly resolveWithNewModule mkdirp@0.5.3 checking installable status 95 silly pacote version manifest for native-url@0.3.1 fetched in 336ms 96 silly resolveWithNewModule native-url@0.3.1 checking installable status 97 http fetch GET 304 https://registry.npmjs.org/pnp-webpack-plugin 339ms (from cache) 98 http fetch GET 304 https://registry.npmjs.org/postcss 336ms (from cache) 99 silly pacote version manifest for pnp-webpack-plugin@1.5.0 fetched in 344ms 100 silly resolveWithNewModule pnp-webpack-plugin@1.5.0 checking installable status 101 http fetch GET 304 https://registry.npmjs.org/prop-types 337ms (from cache) 102 silly pacote version manifest for postcss@7.0.27 fetched in 340ms 103 silly resolveWithNewModule postcss@7.0.27 checking installable status 104 silly pacote version manifest for prop-types@15.7.2 fetched in 339ms 105 silly resolveWithNewModule prop-types@15.7.2 checking installable status 106 http fetch GET 304 https://registry.npmjs.org/prop-types-exact 310ms (from cache) 107 silly pacote version manifest for prop-types-exact@1.2.0 fetched in 314ms 108 silly resolveWithNewModule prop-types-exact@1.2.0 checking installable status 109 http fetch GET 304 https://registry.npmjs.org/babel-plugin-syntax-jsx 1229ms (from cache) 110 silly pacote version manifest for babel-plugin-syntax-jsx@6.18.0 fetched in 1232ms 111 silly resolveWithNewModule babel-plugin-syntax-jsx@6.18.0 checking installable status 112 http fetch GET 304 https://registry.npmjs.org/@babel%2ftypes 1268ms (from cache) 113 http fetch GET 304 https://registry.npmjs.org/react-is 308ms (from cache)

Steps to Reproduce

run npm i next

Expected Behavior

next installs successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Release 6.xwork is associated with a specific npm 6 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions