学习react day01

(1)nodejs.cn 中文网   版本须较新 

(2)全局安装  npm install create-react-app -g  ( 版本查询 create-react-app -V)
(3)创建app create-react-app test-app

(4)项目创建失败 npm证书过期

使用淘宝镜像源 npm config set registry https://registry.npmmirror.com

(5)再重新创建 成功

---------------------------------

笔记:

安装nrm查看镜像源 npm i -g nrm
查看版本:nrm -V 

D:\npm-file>nrm ls
  npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
  cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/

D:\npm-file>nrm use npm
 SUCCESS  The registry has been changed to 'npm'.

学习react day01_第1张图片


 

你可能感兴趣的:(react.js,前端,前端框架)