create-nuxt-app
create-nuxt-app copied to clipboard
Unable to start a new project
Versions
- nuxt: 2.15.8
- node: v16.10.0
Steps to reproduce
yarn create nuxt-app my-app
What is Expected?
A new project is created
What is actually happening?
[andrew@andrew-pc tmp]$ yarn create nuxt-app my-app
yarn create v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- create-nuxt-app
[#############################################################################################################################################################################################################################################################################################################] 342/342/home/andrew/.config/yarn/global/node_modules/create-nuxt-app/lib/cli.js:12
const cli = cac('create-nuxt-app')
^
TypeError: cac is not a function
at Object.<anonymous> (/home/andrew/.config/yarn/global/node_modules/create-nuxt-app/lib/cli.js:12:13)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47
error Command failed.
Exit code: 1
Command: /home/andrew/.yarn/bin/create-nuxt-app
Arguments: my-app
Directory: /tmp
Output:
+1
"sa ma cac pe el " in romanian is equal to "to shit on it" as you called things, that's how it works
it's a disaster
Yep failing for me too
Edit: I was using Node v17, by downgrading to Node v16.13.0 I was able to get it to work.