Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm installation error #4901

Open
Jeggery opened this issue Oct 6, 2024 · 5 comments
Open

Npm installation error #4901

Jeggery opened this issue Oct 6, 2024 · 5 comments

Comments

@Jeggery
Copy link

Jeggery commented Oct 6, 2024

I downloaded the project and ran npm install to install errors

model-viewer241006165853

It's in the model viewer master folder

@Jeggery
Copy link
Author

Jeggery commented Oct 6, 2024

image

@Jeggery
Copy link
Author

Jeggery commented Oct 6, 2024

image

@Bashamega
Copy link

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

@Jeggery
Copy link
Author

Jeggery commented Oct 27, 2024

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?

@Bashamega
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants