model-viewer icon indicating copy to clipboard operation
model-viewer copied to clipboard

Npm installation error

Open Jeggery opened this issue 1 year ago • 5 comments
trafficstars

I downloaded the project and ran npm install to install errors

model-viewer241006165853

It's in the model viewer master folder

Jeggery avatar Oct 06 '24 09:10 Jeggery

image

Jeggery avatar Oct 06 '24 09:10 Jeggery

image

Jeggery avatar Oct 06 '24 09:10 Jeggery

Hello:) This error means that you need to update your node version, because this library is incompatible with your node version

Bashamega avatar Oct 27 '24 04:10 Bashamega

Hello:) This error means that you need to update your node version, because this library is incompatible with your node version

Hi, my nodejs version is v18.19.1. How many versions do I need to upgrade to to meet the needs of this library?

Jeggery avatar Oct 27 '24 15:10 Jeggery

Can you read the read me?

Due to dependency issues on Windows 10 we recommend running <model-viewer> setup from a WSL2 environment.

And installing Node.js & npm via NVM

You should clone model-viewer from inside WSL, not from inside Windows. Otherwise, you might run into line endings and symlink issues.
To clone via HTTPS in WSL (there are known file permissions issues with SSH keys inside WSL):

git clone --depth=1 https://github.com/google/model-viewer.git
cd model-viewer
npm install

Bashamega avatar Oct 28 '24 07:10 Bashamega