How to resolve SAOError when using create-nuxt-app


throw new SAOError(`Failed to install ${packageName} in ${cwd}`)


sudo apt-get install g++ build-essential


create-nuxt-app v3.4.0
✨  Generating Nuxt.js project in ???
? Project name: ???
? Programming language: JavaScript
? Package manager: Yarn
? UI framework: Vuetify.js
? Nuxt.js modules: None
? Linting tools: None
? Testing framework: None
? Rendering mode: Universal (SSR / SSG)
? Deployment target: Server (Node.js hosting)
? Development tools: None
? What is your GitHub username? gander
? Version control system: None

🎉  Successfully created project ???