Certainly! The error you’re encountering:
Error: Failed to load native binding
at Object.<anonymous> (E:\paoi\projects\budget\node_modules\@tailwindcss\oxide\index.js:372:11)
is most often related to a mismatch between your installed Node.js version and native modules your dependencies rely upon—especially @tailwindcss/oxide, which is used by TailwindCSS in newer Laravel starter kits.
Here’s how you can solve this:
1. Check your Node.js version
Laravel’s Breeze/Jetstream/Inertia/Vue starter kits typically expect Node.js 16.x or 18.x. If you’re running a newer version, such as Node.js 20+, some dependencies may not yet support it fully.
Check your current version:
node -v
If version is 20 or higher, downgrade to 18 LTS (recommended):
-
On Windows using nvm-windows:
nvm install 18 nvm use 18
2. Delete previous node modules and lock files
Clear any previous installations:
rm -rf node_modules package-lock.json yarn.lock
Or on Windows PowerShell:
Remove-Item -Recurse -Force node_modules, package-lock.json, yarn.lock
3. Reinstall dependencies
After adjusting Node version and cleaning up lock files, reinstall:
npm install
4. Optional: Rebuild Node modules
Sometimes, native modules need to be rebuilt to match your Node version:
npm rebuild
5. Run your build/dev process again
Try building again:
npm run dev
6. If you still face issues: Clean npm cache
Sometimes, a bad npm cache can cause issues:
npm cache clean --force
Summary Checklist
- Use Node.js 16 or 18 (not 20+).
- Clear node_modules and lock files.
- Run
npm install. - If necessary, run
npm rebuild. - Retry your npm build/dev script.
If this doesn't solve your problem, please share your Node.js and npm versions and the contents of your package.json for further assistance.