Can't install parcel (Unexpected end of JSON input while parsing near...)
See original GitHub issue🐛 bug report
When I try to install parcel on my computer using npm install -g parcel-bundler
, I got this error
npm ERR! Unexpected end of JSON input while parsing near '...cies":{"LiveScript":"'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/benoit/.npm/_logs/2019-10-06T08_59_55_011Z-debug.log
🤔 Expected Behavior
It should install parcel
globally
😯 Current Behavior
The error (see above) appears, I have this extra informations in a log file
695 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...cies":{"LiveScript":"'
695 verbose stack at JSON.parse (<anonymous>)
695 verbose stack at parseJson (/usr/lib/node_modules/npm/node_modules/json-parse-better-errors/index.js:7:17)
695 verbose stack at /usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/body.js:96:50
695 verbose stack at runMicrotasks (<anonymous>)
695 verbose stack at processTicksAndRejections (internal/process/task_queues.js:85:5)
696 verbose cwd /home/benoit/Tests/q
697 verbose Linux 5.2.11-1-MANJARO
698 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "parcel-bundler"
699 verbose node v12.9.1
700 verbose npm v6.11.2
701 error Unexpected end of JSON input while parsing near '...cies":{"LiveScript":"'
702 verbose exit [ 1, true ]
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | |
Node | 12.9 |
npm/Yarn | 6.11.2 |
Operating System | Manjaro 18.1.0 (Juhraya) |
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
NPM Install Error:Unexpected end of JSON input while ...
The error happen when parsing one of the cache files, which have a json format. The cache is found at ~/.npm/_cacache (in linux)...
Read more >npm ERR! Unexpected end of JSON input while parsing near
It needs to print the url it was trying to fetch, and not just say that it failed to parse some abstract json,...
Read more >(Solved) Unexpected end of JSON input while parsing near '...'?
Creating a new React app in /Users/gulshansaini/personal/chatters/client. Installing packages. This might take a couple of minutes. Installing ...
Read more >npm ERR! Unexpected end of JSON input while parsing near ...
If this don't solve the problem try to manually locate the package.json file that is throwing an error and investigate.
Read more >Unexpected end of JSON input Error in JavaScript | bobbyhadz
The "Unexpected end of JSON input" error occurs when trying to parse invalid JSON using the JSON.parse or $.parseJSON methods. Trying to parse...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Arf unfortunately I still got an error, but it seems different 2019-10-06T14_03_35_578Z-debug.log
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.