npm镜像 yarn镜像 yarn install ERRO

yarn安装依赖报错:node_modules\phantomjs-prebuilt: Command failed
npm镜像 yarn镜像 yarn install ERRO_第1张图片
切成国内镜像

PHANTOMJS_CDNURL=http://npm.taobao.org/mirrors/phantomjs yarn install

yarn官方中文文档

淘宝镜像

NPM

查询当前镜像

npm get registry 

设置为淘宝镜像

npm config set registry http://registry.npm.taobao.org/

设置为官方镜像

npm config set registry https://registry.npmjs.org/

YARN

查询当前镜像

yarn config get registry

设置为淘宝镜像

yarn config set registry http://registry.npm.taobao.org/

设置为官方镜像

yarn config set registry https://registry.yarnpkg.com

你可能感兴趣的:(npm,yarn)