Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm - Unexpected end of JSON #88

Open
JohnAlexCO opened this issue Feb 17, 2022 · 0 comments
Open

npm - Unexpected end of JSON #88

JohnAlexCO opened this issue Feb 17, 2022 · 0 comments

Comments

@JohnAlexCO
Copy link

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 npm@6.14.4
3 info using node@v10.19.0
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 ts2c@2.2.9 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/typescript 12ms (from cache)
18 silly fetchPackageMetaData error for typescript@2.8.3 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 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant