![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
npm
张小雨@
当笔记用的,别关注我,不值得
展开
-
vue或者react项目打包后如何预览?
vue或者react项目打包后如何预览?:使用npm的live-server工具部署本地服务打开全局安装npm install -g live-server在dist目录内cmd并输入下方命令即可预览页面附加:github地址https://github.com/tapio/live-server#readme(里边有更详细的使用介绍)...原创 2021-07-21 17:17:53 · 429 阅读 · 0 评论 -
使用create-react-app创建react项目报错
使用create-react-app创建react项目报错使用官方支持的方法创建 React 单页应用程序的方法时报错问题发生的原因问题原因配置的node_cache的路径有问题解决方法npm config set prefix D:\Program Files\nodejs\node_globalnpm config set cache D:\Program Files\nodejs\node_cache重新配置路径再次执行npx create-react-app my-app:.原创 2021-07-16 13:38:36 · 176 阅读 · 0 评论