install nuxt globally code example
Example 1: nuxt install
yarn create nuxt-app <project-name>
npx create-nuxt-app <project-name>
npm init nuxt-app <project-name>
Example 2: install nuxt
$ npx create-nuxt-app <project-name>
Example 3: npm install nuxt global
npm install -g nuxt