react项目构建中的坑—淘宝镜像安装后要设置

基本的搭建步骤参考博客:https://blog.csdn.net/qq_27727251/article/details/86593415

这里要强调的坑是:安装完淘宝镜像要将其设置为默认Registy!

1 npm install -g cnpm --registry=https://registry.npm.taobao.org//安装
2 npm config set registry https://registry.npm.taobao.org//设置

如果只是安装了没有设置,会在create-react-app my-project中出现各种坑!

 

posted @ 2019-03-17 11:52  sophel  阅读(1162)  评论(0编辑  收藏  举报