npm un 包名 :删除指定包,不删除安装的依赖npm
npm un --save 包名: 删除包,而且删除其依赖项bash
npm install -g cnpm --registry=https://registry.npm.taobao.org 安装淘宝源,以后就可使用
cnpm install [name]
spa
或者code
npm i [name] --registry=https://registry.npm.taobao.orgclass
或者cnpm
npm config set registry https://registry.npm.taobao.org 以后依旧使用 npm 安装包,可是走的是淘宝源淘宝