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

fix: Error: EACCES: permission denied for corepack #752

Closed
wants to merge 1 commit into from

Conversation

huybery
Copy link
Collaborator

@huybery huybery commented Apr 5, 2024

Fix #734

@huybery huybery requested a review from rbren April 5, 2024 06:00
@@ -29,7 +29,7 @@ build:
rm -rf node_modules; \
fi
@which corepack > /dev/null || (echo "Installing corepack..." && npm install -g corepack)
@cd frontend && corepack enable && pnpm install && pnpm run make-i18n
@cd frontend && sudo corepack enable && pnpm install && pnpm run make-i18n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 this could cause issues in other environments. I generally try to avoid putting sudo inside a script like this

Does running sudo make build work? Any other options here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, prefer not use sudo in script.

@yufansong
Copy link
Collaborator

I think the problem in #734 is more like the user didn't launch docker locally. Not permission problem.

@neubig
Copy link
Contributor

neubig commented Apr 6, 2024

An alternative is to remove pnpm from our dependencies, which I would prefer: #823

Let's discuss! #820

@rbren
Copy link
Collaborator

rbren commented Apr 6, 2024

Looks like pnpm is gone, so we can close this 😄

@rbren rbren closed this Apr 6, 2024
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

Successfully merging this pull request may close these issues.

I cannot make build, root permission for fedora 39
4 participants