Creat_react_app部署方式

Creat_react_app部署方式
程序员七平Creat_react_app部署方式
项目常用命令
安装依赖
plaintext
1 | npm install |
错误集合
使用npm install 报错’react-scripts’ 不是内部或外部命令,也不是可运行的程序或批处理文件。
解决办法:
- 配置npm包地址bash
1
npm config set registry https://registry.npmjs.org/
- 检查地址bash
1
curl https://registry.npmjs.org/
- 清除npm缓存bash
1
npm cache clean --force
- 再重新npm安装bash
1
npm instanll