Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependenci

Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependenci 直接说答案是rollup版本问题锁定4.62.2版本即可线上环境部署报错Error: Cannot find module rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies ([BUG] Platform-specific optional dependencies not being included in package-lock.json when reinstalling with node_modules present · Issue #4828 · npm/cli · GitHub). Please try npm i again after removing both package-lock.json and node_modules directory.但本地运行可以 npm run build可以最巧的是周五的时候发版还可以周一就不行了debugger了一天才查到不是linux安装不了对应包的问题而是rollup周末升级了。在package内增加版本锁定optionalDependencies: {rollup/rollup-android-arm-eabi: 4.62.2,rollup/rollup-android-arm64: 4.62.2,rollup/rollup-darwin-arm64: 4.62.2,rollup/rollup-darwin-x64: 4.62.2,rollup/rollup-freebsd-arm64: 4.62.2,rollup/rollup-freebsd-x64: 4.62.2,rollup/rollup-linux-arm-gnueabihf: 4.62.2,rollup/rollup-linux-arm-musleabihf: 4.62.2,rollup/rollup-linux-arm64-gnu: 4.62.2,rollup/rollup-linux-arm64-musl: 4.62.2,rollup/rollup-linux-loong64-gnu: 4.62.2,rollup/rollup-linux-loong64-musl: 4.62.2,rollup/rollup-linux-ppc64-gnu: 4.62.2,rollup/rollup-linux-ppc64-musl: 4.62.2,rollup/rollup-linux-riscv64-gnu: 4.62.2,rollup/rollup-linux-riscv64-musl: 4.62.2,rollup/rollup-linux-s390x-gnu: 4.62.2,rollup/rollup-linux-x64-gnu: 4.62.2,rollup/rollup-linux-x64-musl: 4.62.2,rollup/rollup-openbsd-x64: 4.62.2,rollup/rollup-openharmony-arm64: 4.62.2,rollup/rollup-win32-arm64-msvc: 4.62.2,rollup/rollup-win32-ia32-msvc: 4.62.2,rollup/rollup-win32-x64-gnu: 4.62.2},resolutions: {rollup: 4.62.2},发布、部署、okk真的是好坑。。。感谢一起debugger的小伙伴