Thank for Mars Wang42
- 安装n与Node.js
MacOS与Linux
Windows于官网下载Node.js并安装
下载n管理工具: curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n 下载node最新版本: bash n lts # Now node and npm are available
ios现在需要https来访问,所以需要内网穿透。
-
安装ngrok
- MacOS
brew install ngrok
- Linux 使用对应的包管理器安装,如
apt-get install ngrok
、yum install ngrok
- Windows https://ngrok.com/download
- MacOS
-
实操(MacOS)
cd ~/WebAR
node index.js
./ngrok http 8080
[演示](https://github.com/jujimeizuo/WebAR/blob/master/description.mp4)