npm install gets stuck at fetchMetadata

前端 未结 12 1090
星月不相逢
星月不相逢 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条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 14:11

    May be you are sitting behind a corporation firewall which uses proxy everywhere. Depending on your situation, you may to modify local .npmrc for your current project instead of the global one that affects all npm commands on your computer.

    You can equivalently set the configuration properties using commands of the form "npm config set ", e.g. npm config set registry http://registry.npmjs.org/

    Execute below commands on terminal:-

    npm config set registry 
    
    npm config set  https-proxy null
    
    npm config set  proxy null
    

提交回复
热议问题