$ npm install --save three
$ npm install --save @types/three// Option 1: Import the entire three.js core library.
import * as THREE from 'three';
const scene = new THREE.Scene();// Option 2: Import just the parts you need.
import { Scene } from 'three';
const scene = new Scene();