You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vite build will throw an error when building. Error: Cannot find module @rollup/rollup-linux-arm64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
Current workaround eliminates the error, but means that we are npm installing from package.json instead of package-lock.json, (creating potential versioning issues down the road).
This may be directly solved by a solution to the npm issue, but more research is needed.
Description
Vite build will throw an error when building.
Error: Cannot find module @rollup/rollup-linux-arm64-gnu. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
Current workaround eliminates the error, but means that we are npm installing from package.json instead of package-lock.json, (creating potential versioning issues down the road).
This may be directly solved by a solution to the npm issue, but more research is needed.
Reproduction
run
docker build .
in the project directorySystem information
System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Memory: 60.73 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.16.0/bin/npm
Browsers:
Chrome: 129.0.6668.91
Safari: 18.0.1
Additional information
No response
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: