【问题1】安装node,npm install 后npm run dev 报错linux A complete log of this run can be found in: npm ERR! /root/.14_23_43_189Z-debug-0.log
可能因为把其他项目复制过来用,有缓存要先清理掉,解决方法
npm cache clean --force 清理缓存
【问题2】linux npm events.js:292 throw er; // Unhandled 'error' event Error: spawn xdg-open ENOENT Emitted 'error' event on ChildProcess instance at:
npm run dev明明已经100%了,再报了这个错,网上说设置环境变量,解决端口占用都是假的,记得windows每次运行了npm run dev都会弹出浏览器,就想是不是linux没装浏览器弹不出来报的错,装了浏览器就成功解决,另外也可以在vue项目中设置默认不打开浏览器
centos7装谷歌浏览器CentOS7 安装Chrome_瘦身小蚂蚁的博客-CSDN博客_centos chrome
【问题3】conda not found
先用source activate 激活到base再用conda,创建虚拟环境
linux conda创建虚拟环境_丫丫学AI的博客-CSDN博客_linux中conda创建虚拟环境
【问题4】开防火墙和端口
腾讯服务器有设置规则
LINUX安装nginx详细步骤_大蛇王的博客-CSDN博客_linux安装nginx