Skip to content

Instantly share code, notes, and snippets.

@devlargs
Created July 10, 2018 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devlargs/adcdc2268bfa08587a86dbd6556ab855 to your computer and use it in GitHub Desktop.
Save devlargs/adcdc2268bfa08587a86dbd6556ab855 to your computer and use it in GitHub Desktop.
Unexpected JSON
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'native-base',
1 verbose cli '--save' ]
2 info using npm@6.1.0
3 info using node@v8.11.3
4 verbose npm-session 4c8e51a196779981
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/native-base 1059ms
8 silly fetchPackageMetaData error for native-base@latest Unexpected end of JSON input while parsing near '...mw3x5sBnmUyChWQfU53w='
9 timing stage:rollbackFailedOptional Completed in 0ms
10 timing stage:runTopLevelLifecycles Completed in 2055ms
11 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...mw3x5sBnmUyChWQfU53w='
11 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...mw3x5sBnmUyChWQfU53w='
11 verbose stack at JSON.parse (<anonymous>)
11 verbose stack at parseJson (/usr/local/lib/node_modules/npm/node_modules/json-parse-better-errors/index.js:7:17)
11 verbose stack at consumeBody.call.then.buffer (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/node-fetch-npm/src/body.js:96:50)
11 verbose stack at <anonymous>
11 verbose stack at process._tickCallback (internal/process/next_tick.js:188:7)
11 verbose stack From previous event:
11 verbose stack at runCallback (timers.js:810:20)
11 verbose stack at tryOnImmediate (timers.js:768:5)
11 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
11 verbose stack From previous event:
11 verbose stack at fetchPackument (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:91:7)
11 verbose stack at getManifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:37:10)
11 verbose stack at manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:24:10)
11 verbose stack at Object.manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/index.js:12:12)
11 verbose stack at Object.Fetcher#manifest [as manifest] (/usr/local/lib/node_modules/npm/node_modules/pacote/node_modules/protoduck/node_modules/genfun/lib/genfun.js:15:38)
11 verbose stack at manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetch.js:16:18)
11 verbose stack at pinflight (/usr/local/lib/node_modules/npm/node_modules/pacote/manifest.js:24:12)
11 verbose stack at /usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:29:24
11 verbose stack From previous event:
11 verbose stack at _inflight (/usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:28:25)
11 verbose stack at /usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:22:14
11 verbose stack at runCallback (timers.js:810:20)
11 verbose stack at tryOnImmediate (timers.js:768:5)
11 verbose stack at processImmediate [as _immediateCallback] (timers.js:745:5)
11 verbose stack From previous event:
11 verbose stack at inflight (/usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:14:40)
11 verbose stack at Object.manifest (/usr/local/lib/node_modules/npm/node_modules/pacote/manifest.js:22:10)
11 verbose stack at fetchPackageMetadata (/usr/local/lib/node_modules/npm/lib/fetch-package-metadata.js:58:10)
11 verbose stack at limited (/usr/local/lib/node_modules/npm/node_modules/call-limit/call-limit.js:29:10)
11 verbose stack at fs.stat (/usr/local/lib/node_modules/npm/lib/install/deps.js:224:20)
11 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:284:29
11 verbose stack at FSReqWrap.oncomplete (fs.js:152:21)
12 verbose cwd /home/ralphlargo/Desktop/projects/sample
13 verbose Linux 4.15.0-24-generic
14 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "native-base" "--save"
15 verbose node v8.11.3
16 verbose npm v6.1.0
17 error Unexpected end of JSON input while parsing near '...mw3x5sBnmUyChWQfU53w='
18 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment