由于国内互联网环境,导致npm经常出现假死状态,故将npm切换国内源地址(淘宝源)。
npm
打开终端,并且输入以下指令。
npm config set registry https://registry.npm.taobao.org