ts2c
ts2c copied to clipboard
npm - Unexpected end of JSON
Log generated after running npm install -g ts2c
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'ts2c' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 7cb493a22849cfa3
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/ts2c 16ms (from cache)
8 silly pacote tag manifest for ts2c@latest fetched in 26ms
9 timing stage:loadCurrentTree Completed in 41ms
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 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 200 https://registry.npmjs.org/typescript 12ms (from cache)
18 silly fetchPackageMetaData error for [email protected] Unexpected end of JSON input while parsing near '..."latest","merge2":"la'
19 timing stage:rollbackFailedOptional Completed in 0ms
20 timing stage:runTopLevelLifecycles Completed in 74ms
21 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '..."latest","merge2":"la'
21 verbose stack at JSON.parse (<anonymous>)
21 verbose stack at parseJson (/usr/lib/nodejs/json-parse-better-errors/index.js:7:17)
21 verbose stack at consumeBody.call.then.buffer (/usr/share/npm/node_modules/node-fetch-npm/src/body.js:96:50)
21 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
22 verbose cwd /home/john/Desktop/Software/Garter/FebC
23 verbose Linux 5.4.0-65-generic
24 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "ts2c"
25 verbose node v10.19.0
26 verbose npm v6.14.4
27 error Unexpected end of JSON input while parsing near '..."latest","merge2":"la'
28 verbose exit [ 1, true ]