npm install gets stuck at fetchMetadata

前端 未结 12 1087
星月不相逢
星月不相逢 2020-12-25 13:40

I\'m currently unable to run npm install in any project since today. I\'m running node v8.2.1 & npm 5.3.0 (installed via nvm).

When typing npm

12条回答
  •  萌比男神i
    2020-12-25 14:19

    1. REASON: the reason for this is: the cli do not prompt: "Enter passphrase for /home/USERS/.ssh/id_rsa:" and I used to get the prompt correctly in npm@5, but update to npm@6, it occurs.
    2. SOLVE: # eval `ssh-agent` # ssh-add //automaticlly enter passphrase, without maunally operating.

提交回复
热议问题