fannheyward/coc-pyright

I can't install Pyright

HHKSYT opened this issue · 1 comments

I used the commend :CocInstall coc-pyright,and I got the error saying

Extension download at C:\Users\"UserName"\AppData\Local\coc\extensions\node_modules\coc-pyright-a77dd7ae-4f6b-4809-95b6-aa3e648878c2
Installing dependencies by: C:\Program Files\nodejs\npm.CMD install --ignore-scripts --no-lockfile --omit=dev --legacy-peer-deps --no-global.
[npm stderr] npm ERR! code FETCH_ERROR
[npm stderr] npm ERR! errno FETCH_ERROR
[npm stderr] npm ERR! invalid json response body at https://registry.npmjs.org/typescript reason: Unexpected number in JSON at position 1185921
[npm stderr]
[npm stderr] npm ERR! A complete log of this run can be found in:
[npm stderr] npm ERR!     C:\Users\Liam\AppData\Local\npm-cache\_logs\2023-06-26T12_44_43_048Z-debug-0.log
C:\Program Files\nodejs\npm.CMD install exited with 1

This is the full log file
2023-06-26T12_44_43_048Z-debug-0.log

is there a fix for this?

errno FETCH_ERROR

Network issue, your network is not stable and can't connect to NPM servers properly, the downloaded resources is not complete.

Try npm cache clean --force to clean npm cache, and try again.