npm install three
// nice to have
サンプルコード
npm run buildでエラー
Type error: Could not find a declaration file for module 'three'.
...
/node_modules/three/build/three.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/three` if it exists or add a new declaration (.d.ts) file containing `declare module 'three';`
Typescript用の方も入れないと行けなかった
npm i --save-dev @types/three
で解決