npm 安装 jointjs时 出现
# npm install
[ .................] \ fetchMetadata: sill install loadAllDepsIntoIdealTree
[ .................] / fetchMetadata: sill fetchPackageMetaData error for grunt@1.0.1 request to https://registry.npmjs.org/grunt failed, reason: certificate is not yet va
npm ERR! code CERT_NOT_YET_VALID
npm ERR! errno CERT_NOT_YET_VALID
npm ERR! request to https://registry.npmjs.org/grunt failed, reason: certificate is not yet valid
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-07-30T03_56_56_905Z-debug.log
设置下 npm config set strict-ssl false
就行了
原因:无法验证第一个证书