1.node的安装
2.使用npm下载注意不同的分支,特性不同:npm install clone https://github.com/CesiumGS/cesium
3.找到并cd进入cesium文件夹
方法一
4.npm i
5.npm install … Installed 37 packages Linked 569 latest versions
6.npm start
出现http://localhost:8080/表示搭建完成
方法二
7.npm install http-server -g
8.http-server -c-1
9.然后出现本地访问地址:
http://127.0.0.1:8080
http://192.168.1.109:8080
表示环境已经搭建完成了。
如图所示: