Closed ahmedgadit closed 3 years ago
It was working perfectly fine on previous version, and its also running perfectly on my linux machine
Tried with console as well same error
Atom : 1.55.0 Electron: 6.1.12 Chrome : 76.0.3809.146 Node : 12.4.0
npm ERR! Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"'
Sharing a Complete log of file an error
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Users\Com Plus ' + 1 verbose cli '03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\bin\node.exe', 1 verbose cli 'C:\Users\Com Plus ' + 1 verbose cli '03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\bin\npm-cli.js', 1 verbose cli '--globalconfig', 1 verbose cli 'C:\Users\Com Plus 03002834616\.atom\.apm\.apmrc', 1 verbose cli '--userconfig', 1 verbose cli 'C:\Users\Com Plus 03002834616\.atom\.apmrc', 1 verbose cli 'install', 1 verbose cli 'https://www.atom.io/api/packages/linter/versions/3.3.0/tarball', 1 verbose cli '--target=6.1.12', 1 verbose cli '--disturl=https://atom.io/download/electron', 1 verbose cli '--arch=x64', 1 verbose cli '--global-style' 1 verbose cli ] 2 info using npm@6.14.8 3 info using node@v12.4.0 4 verbose npm-session feb44a50d8c2ff35 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://codeload.github.com/steelbrain/linter/legacy.tar.gz/refs/tags/v3.3.0 1358ms (from cache) 8 silly pacote remote manifest for undefined@https://www.atom.io/api/packages/linter/versions/3.3.0/tarball fetched in 1420ms 9 timing stage:loadCurrentTree Completed in 1452ms 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 linter@3.3.0 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/atom-package-deps 156ms (from cache) 18 silly pacote range manifest for atom-package-deps@^6.0.0 fetched in 165ms 19 silly resolveWithNewModule atom-package-deps@6.0.0 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/lodash 169ms (from cache) 21 silly pacote range manifest for lodash@^4.17.20 fetched in 173ms 22 silly resolveWithNewModule lodash@4.17.21 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/minimatch 173ms (from cache) 24 silly pacote range manifest for minimatch@^3.0.4 fetched in 190ms 25 silly resolveWithNewModule minimatch@3.0.4 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/atom-select-list 1257ms (from cache) 27 silly pacote range manifest for atom-select-list@^0.7.2 fetched in 1260ms 28 silly resolveWithNewModule atom-select-list@0.7.2 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/semver 85ms (from cache) 30 silly fetchPackageMetaData error for semver@^7.3.2 Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"' 31 http fetch GET 304 https://registry.npmjs.org/sb-fs 91ms (from cache) 32 silly pacote range manifest for sb-fs@^4.0.0 fetched in 95ms 33 silly resolveWithNewModule sb-fs@4.0.0 checking installable status 34 timing stage:rollbackFailedOptional Completed in 1ms 35 timing stage:runTopLevelLifecycles Completed in 2844ms 36 silly saveTree apm-install-dir-2021220-22840-aw8opc.mbxxk 36 silly saveTree -- linter@3.3.0 36 silly saveTree +-- atom-package-deps@6.0.0 36 silly saveTree |-- sb-fs@4.0.0 36 silly saveTree +-- atom-select-list@0.7.2 36 silly saveTree +-- lodash@4.17.21 36 silly saveTree `-- minimatch@3.0.4 37 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"' 37 verbose stack at JSON.parse () 37 verbose stack at parseJson (C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17) 37 verbose stack at C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50 37 verbose stack at processTicksAndRejections (internal/process/task_queues.js:89:5) 38 verbose cwd C:\Users\COMPLU~1\AppData\Local\Temp\apm-install-dir-2021220-22840-aw8opc.mbxxk 39 verbose Windows_NT 10.0.19042 40 verbose argv "C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\bin\node.exe" "C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Com Plus 03002834616\.atom\.apm\.apmrc" "--userconfig" "C:\Users\Com Plus 03002834616\.atom\.apmrc" "install" "https://www.atom.io/api/packages/linter/versions/3.3.0/tarball" "--target=6.1.12" "--disturl=https://atom.io/download/electron" "--arch=x64" "--global-style" 41 verbose node v12.4.0 42 verbose npm v6.14.8 43 error Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"' 44 verbose exit [ 1, true ]
-- linter@3.3.0 36 silly saveTree +-- atom-package-deps@6.0.0 36 silly saveTree |
Solved By Removing APM folder from .atom directory in user
It was working perfectly fine on previous version, and its also running perfectly on my linux machine
Tried with console as well same error
Atom : 1.55.0 Electron: 6.1.12 Chrome : 76.0.3809.146 Node : 12.4.0
npm ERR! Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"'
Sharing a Complete log of file an error
0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\Users\Com Plus ' + 1 verbose cli '03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\bin\node.exe', 1 verbose cli 'C:\Users\Com Plus ' + 1 verbose cli '03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\bin\npm-cli.js', 1 verbose cli '--globalconfig', 1 verbose cli 'C:\Users\Com Plus 03002834616\.atom\.apm\.apmrc', 1 verbose cli '--userconfig', 1 verbose cli 'C:\Users\Com Plus 03002834616\.atom\.apmrc', 1 verbose cli 'install', 1 verbose cli 'https://www.atom.io/api/packages/linter/versions/3.3.0/tarball', 1 verbose cli '--target=6.1.12', 1 verbose cli '--disturl=https://atom.io/download/electron', 1 verbose cli '--arch=x64', 1 verbose cli '--global-style' 1 verbose cli ] 2 info using npm@6.14.8 3 info using node@v12.4.0 4 verbose npm-session feb44a50d8c2ff35 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://codeload.github.com/steelbrain/linter/legacy.tar.gz/refs/tags/v3.3.0 1358ms (from cache) 8 silly pacote remote manifest for undefined@https://www.atom.io/api/packages/linter/versions/3.3.0/tarball fetched in 1420ms 9 timing stage:loadCurrentTree Completed in 1452ms 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 linter@3.3.0 checking installable status 17 http fetch GET 304 https://registry.npmjs.org/atom-package-deps 156ms (from cache) 18 silly pacote range manifest for atom-package-deps@^6.0.0 fetched in 165ms 19 silly resolveWithNewModule atom-package-deps@6.0.0 checking installable status 20 http fetch GET 304 https://registry.npmjs.org/lodash 169ms (from cache) 21 silly pacote range manifest for lodash@^4.17.20 fetched in 173ms 22 silly resolveWithNewModule lodash@4.17.21 checking installable status 23 http fetch GET 304 https://registry.npmjs.org/minimatch 173ms (from cache) 24 silly pacote range manifest for minimatch@^3.0.4 fetched in 190ms 25 silly resolveWithNewModule minimatch@3.0.4 checking installable status 26 http fetch GET 304 https://registry.npmjs.org/atom-select-list 1257ms (from cache) 27 silly pacote range manifest for atom-select-list@^0.7.2 fetched in 1260ms 28 silly resolveWithNewModule atom-select-list@0.7.2 checking installable status 29 http fetch GET 304 https://registry.npmjs.org/semver 85ms (from cache) 30 silly fetchPackageMetaData error for semver@^7.3.2 Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"' 31 http fetch GET 304 https://registry.npmjs.org/sb-fs 91ms (from cache) 32 silly pacote range manifest for sb-fs@^4.0.0 fetched in 95ms 33 silly resolveWithNewModule sb-fs@4.0.0 checking installable status 34 timing stage:rollbackFailedOptional Completed in 1ms 35 timing stage:runTopLevelLifecycles Completed in 2844ms 36 silly saveTree apm-install-dir-2021220-22840-aw8opc.mbxxk 36 silly saveTree)
37 verbose stack at parseJson (C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
37 verbose stack at C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50
37 verbose stack at processTicksAndRejections (internal/process/task_queues.js:89:5)
38 verbose cwd C:\Users\COMPLU~1\AppData\Local\Temp\apm-install-dir-2021220-22840-aw8opc.mbxxk
39 verbose Windows_NT 10.0.19042
40 verbose argv "C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\bin\node.exe" "C:\Users\Com Plus 03002834616\AppData\Local\atom\app-1.55.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\Com Plus 03002834616\.atom\.apm\.apmrc" "--userconfig" "C:\Users\Com Plus 03002834616\.atom\.apmrc" "install" "https://www.atom.io/api/packages/linter/versions/3.3.0/tarball" "--target=6.1.12" "--disturl=https://atom.io/download/electron" "--arch=x64" "--global-style"
41 verbose node v12.4.0
42 verbose npm v6.14.8
43 error Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"'
44 verbose exit [ 1, true ]
-- linter@3.3.0 36 silly saveTree +-- atom-package-deps@6.0.0 36 silly saveTree |
-- sb-fs@4.0.0 36 silly saveTree +-- atom-select-list@0.7.2 36 silly saveTree +-- lodash@4.17.21 36 silly saveTree `-- minimatch@3.0.4 37 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...er"},"dist":{"shasum"' 37 verbose stack at JSON.parse (Solved By Removing APM folder from .atom directory in user