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

rollup error during npm build on Ubuntu #14

Open
turbobobbytraykov opened this issue Jan 10, 2025 · 1 comment
Open

rollup error during npm build on Ubuntu #14

turbobobbytraykov opened this issue Jan 10, 2025 · 1 comment
Assignees

Comments

@turbobobbytraykov
Copy link

When running npm run build on Ubuntu 22.04 we get the following error:

An unhandled exception occurred: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
See "/tmp/ng-YUWFiC/angular-errors.log" for further details.

@turbobobbytraykov
Copy link
Author

As noted in vitejs/vite#15532, we may need to add this to the package.lock.json file:

"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.26.0"
}

However since this is a transient dependency, I am not sure if this is the right way to go.

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