vue项目创建遇到的问题

npm error code ECONNRESET
npm error syscall read
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'

超时信息

解决办法 切换淘宝镜像:

npm config set proxy null
npm config set registry https://registry.npmmirror.com
npm create vue@latest 

运行时报错:
npm run dev
'vite' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
处理方式: 安装全局vite

npm install -g vite

//进入项目中安装
npm install
npm run dev
posted @ 2024-09-12 02:32  长安626  阅读(6)  评论(0编辑  收藏  举报