SSL Error: CERT_UNTRUSTED while using npm command

后端 未结 7 493
梦谈多话
梦谈多话 2020-12-07 08:10

I am trying to install express framework using npm command but getting following error.

error message is

E:\\myFindings\\nodejs_programs\\node>         


        
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 08:24

    You can bypass https using below commands:

    npm config set strict-ssl false
    

    or set the registry URL from https or http like below:

    npm config set registry="http://registry.npmjs.org/"
    

    However, Personally I believe bypassing https is not the real solution, but we can use it as a workaround.

提交回复
热议问题