SSL Error: CERT_UNTRUSTED while using npm command

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

    Since i stumbled on the post via google:

    Try using npm ci it will be much than an npm install.

    From the manual:

    In short, the main differences between using npm install and npm ci are:

    • The project must have an existing package-lock.json or npm-shrinkwrap.json.
    • If dependencies in the package lock do not match those in package.json, npm ci will exit with an error, instead of updating the package lock.
    • npm ci can only install entire projects at a time: individual dependencies cannot be added with this command.
    • If a node_modules is already present, it will be automatically removed before npm ci begins its install.
    • It will never write to package.json or any of the package-locks: installs are essentially frozen.
    0 讨论(0)
提交回复
热议问题