Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies

I am facing an error while running the server after creating a vite application please help me resolve this.

enter image description here

I was learning threejs and just created a vite application with vanilla framework and javascript as the language , it was all created smoothly but npm run dev shows the error which i cant seem to resolve.

I tried installing .json file after removing but still no good.

like image 738
Bhawna Sharma Avatar asked Dec 05 '25 07:12

Bhawna Sharma


2 Answers

Running npm install @rollup/rollup-win32-x64-msvc solved the issue.

like image 165
Smart Manoj Avatar answered Dec 07 '25 20:12

Smart Manoj


You can try "npm install [email protected]" or "npm install [email protected]", it will solve the issue

like image 34
Toànn Avatar answered Dec 07 '25 21:12

Toànn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!