I
I
Igor2020-05-19 12:19:50
Vue.js
Igor, 2020-05-19 12:19:50

Why is there an error when installing Vue CLI?

I install Vue CLI with the command npm install -g @vue/cli, for some time I see this in the console:

[..................] \ rollbackFailedOptional: verb npm-session af64053f57057568

that is, as I understand it, the installation process has begun, and then the following errors come out:

npm ERR! Unexpected end of JSON input while parsing near '...6383df59c3a2407bd942c'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Работа\AppData\Roaming\npm-cache\_logs\2020-05-19T09_06_34_102Z-debug.log

Why do errors occur? I think it’s unlikely that I could mess up somehow, because. this is the normal install command.

Here is the log (Google Drive): 2020-05-19T09_06_34_102Z-debug.log

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2020-05-30
@loonny

The problem was in the unstable Internet.

L
Lex_pvl, 2020-05-19
@Lex_pvl

npm cache clean --force
May help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question