10 messages · Page 1 of 1 (latest)
hello, I'm new learning three.js and I can't install it with npm, how can I do it?
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
but i canis see it in the browser
i can't
yes, you can see it in your browser then. npm run dev
sorry, typo, npm create vite (not vita)