一、无法获取AOS的环境变量
- 报错信息:
部署AOS后,启动AOS时出现以下报错:
aos!不是内部或外部命令,也不是可运行的程序或批处理文件。
- 问题解决
使用 npm config get prefix 查看全局安装的路径
将上面查出来的路径,添加到环境变量中的path中即可
二、AOS安装后启动报错
- 报错信息:
部署AOS后,启动AOS时出现以下报错:
An Error occurred trying to contact your AOS process. Please check your access points, and if the problem persists contact support.
- 问题解决
设置以下环境变量即可
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890可