I’m currently facing an issue while trying to deploy my Nuxt 3 app on Cloudflare Pages. The error message I’m encountering states that the ‘nuxt-security’ package is not found. I’ve exhausted all possible solutions and find myself stuck. Right now, my app is live on AWS, but I’m eager to transition it to Cloudflare Pages. If anyone has experience with this and can lend a hand, I would greatly appreciate it!
Can you provide any more details or a minimal way for us to reproduce the error? Do you have the nuxt-security package in your package.json? What’s the exact full error that you get in your build log?
I resolved the issue by removing NODE_ENV=production to my environment variables. When you have NODE_ENV=production set in your environment variables, it prevents the installation of dev dependencies. Removing it fixed the problem