[SOLVED] Atom-beautify error

I have tried reinstalling still getting the same issues dont know whats wrong never happend before :confused:

Installing “atom-beautify@0.33.4” failed.Hide output…

npm ERR! Unexpected end of JSON input while parsing near '...:{"name":"bluebird","'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\kiran\.atom\.apm\_logs\2018-12-13T05_44_36_751Z-debug.log

The following log file below :

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Users\\kiran\\AppData\\Local\\atom\\app-1.33.0\\resources\\app\\apm\\bin\\node.exe',
1 verbose cli   'C:\\Users\\kiran\\AppData\\Local\\atom\\app-1.33.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   '--globalconfig',
1 verbose cli   'C:\\Users\\kiran\\.atom\\.apm\\.apmrc',
1 verbose cli   '--userconfig',
1 verbose cli   'C:\\Users\\kiran\\.atom\\.apmrc',
1 verbose cli   'install',
1 verbose cli   'https://www.atom.io/api/packages/atom-beautify/versions/0.33.4/tarball',
1 verbose cli   '--runtime=electron',
1 verbose cli   '--target=2.0.11',
1 verbose cli   '--dist-url=https://atom.io/download/electron',
1 verbose cli   '--arch=x64',
1 verbose cli   '--global-style' ]
2 info using npm@6.2.0
3 info using node@v8.9.3
4 verbose npm-session 9e49d13c6962908e
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://www.atom.io/api/packages/atom-beautify/versions/0.33.4/tarball 3226ms
8 silly pacote remote manifest for undefined@https://www.atom.io/api/packages/atom-beautify/versions/0.33.4/tarball fetched in 3275ms
9 timing stage:loadCurrentTree Completed in 3734ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule atom-beautify@0.33.4 checking installable status
17 http fetch GET 200 https://registry.npmjs.org/align-yaml 57ms (from cache)
18 http fetch GET 200 https://registry.npmjs.org/atom-message-panel 55ms (from cache)
19 http fetch GET 200 https://registry.npmjs.org/async 57ms (from cache)
20 http fetch GET 200 https://registry.npmjs.org/atom-space-pen-views 63ms (from cache)
21 http fetch GET 200 https://registry.npmjs.org/coffee-fmt 62ms (from cache)
22 http fetch GET 200 https://registry.npmjs.org/coffee-formatter 62ms (from cache)
23 http fetch GET 200 https://registry.npmjs.org/coffeescript 62ms (from cache)
24 http fetch GET 200 https://registry.npmjs.org/csscomb 63ms (from cache)
25 http fetch GET 200 https://registry.npmjs.org/bluebird 67ms (from cache)
26 silly fetchPackageMetaData error for bluebird@^3.5.1 Unexpected end of JSON input while parsing near '...:{"name":"bluebird","'
27 http fetch GET 200 https://registry.npmjs.org/diff 76ms (from cache)
28 silly pacote range manifest for align-yaml@^0.1.8 fetched in 90ms
29 silly resolveWithNewModule align-yaml@0.1.8 checking installable status
30 silly pacote range manifest for atom-message-panel@^1.3.0 fetched in 88ms
31 silly resolveWithNewModule atom-message-panel@1.3.0 checking installable status
32 silly pacote range manifest for async@^2.6.0 fetched in 93ms
33 silly resolveWithNewModule async@2.6.1 checking installable status
34 silly pacote range manifest for atom-space-pen-views@^2.2.0 fetched in 95ms
35 silly resolveWithNewModule atom-space-pen-views@2.2.0 checking installable status
36 silly pacote range manifest for coffee-formatter@^0.1.2 fetched in 94ms
37 silly resolveWithNewModule coffee-formatter@0.1.2 checking installable status
38 silly pacote range manifest for coffee-fmt@^0.12.0 fetched in 98ms
39 silly resolveWithNewModule coffee-fmt@0.12.0 checking installable status
40 silly pacote range manifest for coffeescript@^1.12.6 fetched in 99ms
41 silly resolveWithNewModule coffeescript@1.12.7 checking installable status
42 silly pacote range manifest for csscomb@^4.2.0 fetched in 100ms
43 silly resolveWithNewModule csscomb@4.2.0 checking installable status
44 silly pacote range manifest for diff@^3.4.0 fetched in 115ms
45 silly resolveWithNewModule diff@3.5.0 checking installable status
46 http fetch GET 200 https://registry.npmjs.org/editorconfig 64ms (from cache)
47 http fetch GET 200 https://registry.npmjs.org/event-kit 61ms (from cache)
48 http fetch GET 200 https://registry.npmjs.org/expand-home-dir 45ms (from cache)
49 http fetch GET 200 https://registry.npmjs.org/eslint 62ms (from cache)
50 http fetch GET 200 https://registry.npmjs.org/extend 48ms (from cache)
51 http fetch GET 200 https://registry.npmjs.org/gherkin 49ms (from cache)
52 silly fetchPackageMetaData error for event-kit@^2.4.0 Unexpected end of JSON input while parsing near '...dist":{"integrity":"s'
53 silly fetchPackageMetaData error for eslint@^4.16.0 Unexpected end of JSON input while parsing near '..."^0.4.0","jsdoc":"^3.'
54 silly fetchPackageMetaData error for gherkin@^2.12.2 Unexpected end of JSON input while parsing near '...1ME+GtQrML2yL9JX8SwlS'
55 http fetch GET 200 https://registry.npmjs.org/handlebars 56ms (from cache)
56 silly fetchPackageMetaData error for handlebars@^4.0.11 Unexpected end of JSON input while parsing near '...handlebars","version"'
57 http fetch GET 200 https://registry.npmjs.org/js-beautify 68ms (from cache)
58 http fetch GET 200 https://registry.npmjs.org/jscs 68ms (from cache)
59 silly pacote range manifest for editorconfig@^0.15.0 fetched in 105ms
60 silly resolveWithNewModule editorconfig@0.15.2 checking installable status
61 silly fetchPackageMetaData error for js-beautify@^1.8.1 Unexpected end of JSON input while parsing near '...,"tarball":"http://re'
62 silly fetchPackageMetaData error for jscs@^3.0.7 Unexpected end of JSON input while parsing near '...639255df07229bbaa6","'
63 http fetch GET 200 https://registry.npmjs.org/lodash 71ms (from cache)
64 silly pacote version manifest for expand-home-dir@0.0.3 fetched in 90ms
65 silly resolveWithNewModule expand-home-dir@0.0.3 checking installable status
66 silly pacote range manifest for extend@^3.0.1 fetched in 90ms
67 silly resolveWithNewModule extend@3.0.2 checking installable status
68 silly pacote range manifest for lodash@^4.17.4 fetched in 96ms
69 silly resolveWithNewModule lodash@4.17.11 checking installable status
70 http fetch GET 200 https://registry.npmjs.org/loophole 60ms (from cache)
71 http fetch GET 200 https://registry.npmjs.org/nginxbeautify 59ms (from cache)
72 http fetch GET 200 https://registry.npmjs.org/node-cljfmt 63ms (from cache)
73 http fetch GET 200 https://registry.npmjs.org/open 42ms (from cache)
74 http fetch GET 200 https://registry.npmjs.org/node-dir 61ms (from cache)
75 http fetch GET 200 https://registry.npmjs.org/prettier 43ms (from cache)
76 http fetch GET 200 https://registry.npmjs.org/prettydiff2 44ms (from cache)
77 http fetch GET 200 https://registry.npmjs.org/pug-beautify 35ms (from cache)
78 silly pacote range manifest for loophole@^1.1.0 fetched in 75ms
79 silly resolveWithNewModule loophole@1.1.0 checking installable status
80 silly pacote range manifest for nginxbeautify@^2.0.1 fetched in 80ms
81 silly resolveWithNewModule nginxbeautify@2.0.1 checking installable status
82 http fetch GET 200 https://registry.npmjs.org/remark 44ms (from cache)
83 silly pacote version manifest for node-cljfmt@0.5.3 fetched in 83ms
84 silly resolveWithNewModule node-cljfmt@0.5.3 checking installable status
85 silly pacote version manifest for open@0.0.5 fetched in 65ms
86 silly resolveWithNewModule open@0.0.5 checking installable status
87 silly pacote version manifest for node-dir@0.1.17 fetched in 85ms
88 silly resolveWithNewModule node-dir@0.1.17 checking installable status
89 silly pacote range manifest for prettier@^1.11.1 fetched in 69ms
90 silly resolveWithNewModule prettier@1.15.3 checking installable status
91 silly pacote range manifest for prettydiff2@^2.2.7 fetched in 69ms
92 silly resolveWithNewModule prettydiff2@2.2.7 checking installable status
93 silly pacote range manifest for pug-beautify@^0.1.1 fetched in 64ms
94 silly resolveWithNewModule pug-beautify@0.1.1 checking installable status
95 http fetch GET 200 https://registry.npmjs.org/season 47ms (from cache)
96 silly pacote version manifest for remark@6.0.1 fetched in 70ms
97 silly resolveWithNewModule remark@6.0.1 checking installable status
98 silly pacote range manifest for season@^6.0.2 fetched in 69ms
99 silly resolveWithNewModule season@6.0.2 checking installable status
100 http fetch GET 200 https://registry.npmjs.org/semver 57ms (from cache)
101 http fetch GET 200 https://registry.npmjs.org/space-pen 55ms (from cache)
102 http fetch GET 200 https://registry.npmjs.org/shell-env 58ms (from cache)
103 http fetch GET 200 https://registry.npmjs.org/strip-json-comments 64ms (from cache)
104 http fetch GET 200 https://registry.npmjs.org/temp 62ms (from cache)
105 http fetch GET 200 https://registry.npmjs.org/tidy-markdown 54ms (from cache)
106 http fetch GET 200 https://registry.npmjs.org/typescript 62ms (from cache)
107 silly pacote range manifest for semver@^5.5.0 fetched in 163ms
108 silly resolveWithNewModule semver@5.6.0 checking installable status
109 http fetch GET 200 https://registry.npmjs.org/typescript-formatter 139ms (from cache)
110 silly pacote version manifest for space-pen@5.1.2 fetched in 212ms
111 silly resolveWithNewModule space-pen@5.1.2 checking installable status
112 silly pacote range manifest for shell-env@^0.3.0 fetched in 217ms
113 silly resolveWithNewModule shell-env@0.3.0 checking installable status
114 http fetch GET 200 https://registry.npmjs.org/underscore-plus 191ms (from cache)
115 silly pacote range manifest for temp@^0.8.3 fetched in 215ms
116 silly resolveWithNewModule temp@0.8.3 checking installable status
117 silly pacote range manifest for strip-json-comments@^2.0.1 fetched in 219ms
118 silly resolveWithNewModule strip-json-comments@2.0.1 checking installable status
119 silly pacote version manifest for tidy-markdown@2.0.4 fetched in 209ms
120 silly resolveWithNewModule tidy-markdown@2.0.4 checking installable status
121 silly pacote range manifest for typescript@^2.6.2 fetched in 211ms
122 silly resolveWithNewModule typescript@2.9.2 checking installable status
123 silly pacote range manifest for typescript-formatter@^7.0.0 fetched in 208ms
124 silly resolveWithNewModule typescript-formatter@7.2.2 checking installable status
125 http fetch GET 200 https://registry.npmjs.org/universal-analytics 179ms (from cache)
126 silly pacote range manifest for underscore-plus@^1.6.6 fetched in 207ms
127 silly resolveWithNewModule underscore-plus@1.6.8 checking installable status
128 silly pacote range manifest for universal-analytics@^0.4.16 fetched in 189ms
129 silly resolveWithNewModule universal-analytics@0.4.20 checking installable status
130 http fetch GET 200 https://registry.npmjs.org/uuid 35ms (from cache)
131 http fetch GET 200 https://registry.npmjs.org/which 29ms (from cache)
132 http fetch GET 200 https://registry.npmjs.org/winston 27ms (from cache)
133 http fetch GET 200 https://registry.npmjs.org/yaml-front-matter 24ms (from cache)
134 silly pacote range manifest for uuid@^3.1.0 fetched in 44ms
135 silly resolveWithNewModule uuid@3.3.2 checking installable status
136 silly pacote range manifest for which@^1.3.0 fetched in 37ms
137 silly resolveWithNewModule which@1.3.1 checking installable status
138 silly pacote version manifest for yaml-front-matter@3.4.1 fetched in 31ms
139 silly resolveWithNewModule yaml-front-matter@3.4.1 checking installable status
140 silly pacote range manifest for winston@^2.4.0 fetched in 37ms
141 silly resolveWithNewModule winston@2.4.4 checking installable status
142 timing stage:rollbackFailedOptional Completed in 2ms
143 timing stage:runTopLevelLifecycles Completed in 4311ms
144 silly saveTree apm-install-dir-1181113-4612-1uqb65f.x48
144 silly saveTree `-- atom-beautify@0.33.4
144 silly saveTree   +-- align-yaml@0.1.8
144 silly saveTree   +-- async@2.6.1
144 silly saveTree   | `-- lodash@4.17.11
144 silly saveTree   +-- atom-message-panel@1.3.0
144 silly saveTree   | `-- atom-space-pen-views@2.2.0
144 silly saveTree   |   `-- space-pen@5.1.2
144 silly saveTree   |     `-- underscore-plus@1.6.8
144 silly saveTree   +-- atom-space-pen-views@2.2.0
144 silly saveTree   +-- coffee-fmt@0.12.0
144 silly saveTree   +-- coffee-formatter@0.1.2
144 silly saveTree   +-- coffeescript@1.12.7
144 silly saveTree   +-- csscomb@4.2.0
144 silly saveTree   +-- diff@3.5.0
144 silly saveTree   +-- editorconfig@0.15.2
144 silly saveTree   | `-- semver@5.6.0
144 silly saveTree   +-- expand-home-dir@0.0.3
144 silly saveTree   +-- extend@3.0.2
144 silly saveTree   +-- lodash@4.17.11
144 silly saveTree   +-- loophole@1.1.0
144 silly saveTree   +-- nginxbeautify@2.0.1
144 silly saveTree   +-- node-cljfmt@0.5.3
144 silly saveTree   +-- node-dir@0.1.17
144 silly saveTree   +-- open@0.0.5
144 silly saveTree   +-- prettier@1.15.3
144 silly saveTree   +-- prettydiff2@2.2.7
144 silly saveTree   +-- pug-beautify@0.1.1
144 silly saveTree   +-- remark@6.0.1
144 silly saveTree   +-- season@6.0.2
144 silly saveTree   +-- semver@5.6.0
144 silly saveTree   +-- shell-env@0.3.0
144 silly saveTree   +-- space-pen@5.1.2
144 silly saveTree   +-- strip-json-comments@2.0.1
144 silly saveTree   +-- temp@0.8.3
144 silly saveTree   +-- tidy-markdown@2.0.4
144 silly saveTree   +-- typescript-formatter@7.2.2
144 silly saveTree   +-- typescript@2.9.2
144 silly saveTree   +-- underscore-plus@1.6.8
144 silly saveTree   +-- universal-analytics@0.4.20
144 silly saveTree   | `-- uuid@3.3.2
144 silly saveTree   +-- uuid@3.3.2
144 silly saveTree   +-- which@1.3.1
144 silly saveTree   +-- winston@2.4.4
144 silly saveTree   `-- yaml-front-matter@3.4.1
145 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...:{"name":"bluebird","'
145 verbose stack     at JSON.parse (<anonymous>)
145 verbose stack     at parseJson (C:\Users\kiran\AppData\Local\atom\app-1.33.0\resources\app\apm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
145 verbose stack     at consumeBody.call.then.buffer (C:\Users\kiran\AppData\Local\atom\app-1.33.0\resources\app\apm\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50)
145 verbose stack     at <anonymous>
145 verbose stack     at process._tickCallback (internal/process/next_tick.js:188:7)
146 verbose cwd C:\Users\kiran\AppData\Local\Temp\apm-install-dir-1181113-4612-1uqb65f.x48
147 verbose Windows_NT 6.3.9600
148 verbose argv "C:\\Users\\kiran\\AppData\\Local\\atom\\app-1.33.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\kiran\\AppData\\Local\\atom\\app-1.33.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\kiran\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\kiran\\.atom\\.apmrc" "install" "https://www.atom.io/api/packages/atom-beautify/versions/0.33.4/tarball" "--runtime=electron" "--target=2.0.11" "--dist-url=https://atom.io/download/electron" "--arch=x64" "--global-style"
149 verbose node v8.9.3
150 verbose npm  v6.2.0
151 error Unexpected end of JSON input while parsing near '...:{"name":"bluebird","'
152 verbose exit [ 1, true ]

Error solved !
It was just a nodejs error. It was out of date, updated from 10.13 to 10.14 worked.