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

Can't run the lit.dev project. #1245

Closed
zh-lx opened this issue Nov 1, 2023 · 3 comments
Closed

Can't run the lit.dev project. #1245

zh-lx opened this issue Nov 1, 2023 · 3 comments

Comments

@zh-lx
Copy link

zh-lx commented Nov 1, 2023

There are lots of users of lit from China, so I forked the repository and want to translate docs to a Chinese version. But I failed in the first step because I can't run this project.

After I run npm ci and npm run dev, the following error will be throwed in the terminal:

image

I think maybe the readme of this project a little old. Could you please update the readme?

@augustjk
Copy link
Member

augustjk commented Nov 1, 2023

That's odd. npm run dev from the root directory does work for me. Assuming npm ci was done already, what version of npm are you on? The only reason I can think of for this error is that it's not recognizing the --workspace flag which was added in some version of npm v7. I'm on npm v9 and I think some members of our team are using v10.

There's been a community member who also wanted to do a Chinese translation here too: #817
Unfortunately we haven't been able to move forward on a sustainable approach to adding localization for the site #355

@zh-lx
Copy link
Author

zh-lx commented Nov 2, 2023

Thank you for your answer, my npm version is v6. It can work now after I upgraded my npm version.

I didn't notice that someone had already translated this part of the information into Chinese before, and now I think this can help me save a lot of work. I think a good way to keep Chinese and English documents synchronized is for me to translate them separately on the branch I cloned. When there is a new commit in the main branch of lit.dev, I just need to compare the diff and update the corresponding content on my branch.

Thank you again for your help!

@AndrewJakubowicz
Copy link
Contributor

Closing as it looks like the issue has been resolved. Please re-open if anything else comes up!
Thank you!

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

No branches or pull requests

3 participants