SSL Error: CERT_UNTRUSTED while using npm command

后端 未结 7 512
梦谈多话
梦谈多话 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:17

    npm ERR! node -v v0.8.0
    npm ERR! npm -v 1.1.32
    

    Update your node.js installation.The following commands should do it (from here):

    sudo npm cache clean -f
    sudo npm install -g n
    sudo n stable
    

    Edit: okay, if you really have a good reason to run an ancient version of the software, npm set ca null will fix the issue. It happened, because built-in npm certificate has expired over the years.

提交回复
热议问题