React 安装及配置 sass

https://www.runoob.com/react/react-install.html

 

一、安装node.js 12.8版本

二、安装 React  ,如安装报4048等错误,关闭杀毒软件

npm install -g create-react-app 

三、创建项目,直接到项目目录运行 cmd.exe ,
create-react-app my-app

四、安装 yarn , npm i -g yarn

五、安装 sass , yarn add sass node-sass@npm:sass

六、修改 css 文件后缀,改为 scss (
import './App.scss';
)
posted @ 2021-12-08 01:10  画画520  阅读(707)  评论(0编辑  收藏  举报