npm install core-js不成功
如果你的项目的core-js使用的是老版本的依赖(已经没有在维护)
npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command ???\node.exe ???\node_modules\npm\bin\npm-cli.js install --force --cache=??? --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm WARN using --force Recommended protections disabled. npm ERR! npm ERR! code CERT_HAS_EXPIRED npm ERR! npm ERR! errno CERT_HAS_EXPIRED npm ERR! npm ERR! request to https://registry.npm.taobao.org/yargs-unparser/download/yargs-unparser-1.6.0.tgz?cache=0&sync_timestamp=1592366129748&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-unparser%2Fdownload%2Fyargs-unparser-1.6.0.tgz failed, reason: certificate has expired
解决:
版本问题。换成node12,只换成16不够。如果不够,多降低几个版本。或者直接问项目来源,以前运维时开发工具用的什么环境
