#how install three with npm?

10 messages · Page 1 of 1 (latest)

soft merlin
#

hello, I'm new learning three.js and I can't install it with npm, how can I do it?

vital forum
#

npm install three

#

for this to work you need a project with a package.json

#

best use a bundler, like vite

#

type "npm create vite" and it leads you through all the steps

#

afterwards you can npm install anything you want

soft merlin
#

but i canis see it in the browser

#

i can't

vital forum
#

yes, you can see it in your browser then. npm run dev

#

sorry, typo, npm create vite (not vita)