npm install three code example Example: install three.js npm install --save three # Or with yarn yarn add three