使用npm下载依赖时,因为是从国外的网站上下载内容,因此可能常常会出现不稳定的状况,因此须要下载cnpm插件代替npm,cnpm是国内淘宝的作的,在国内使用稳定。1.安装cnpm插件npm install -g cnpm --registry=https://registry.npm.taobao.org2.验证安装cnpm -v3.下载依赖cnpm i 或者 cnpm installnpm