threeJS npm install 安装任意版本及查看所有版本
查看threejs的所有版本。
npm view three versions --json
发现到目前为止threejs最新版本为”0.129.0″
卸载当前项目中的threejs
npm uninstall three
安装之前的旧版本threejs”0.128.0″
npm install three@0.128.0
在项目需要使用threejs的位置引入
import * as Three from “three”
不写逻辑代码空跑一遍项目
npm run dev