nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.48k stars 429 forks source link

Unable to start a new project #874

Open aivchen opened 2 years ago

aivchen commented 2 years ago

Versions

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 "create-nuxt-app@3.7.1" 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:
xente85 commented 2 years ago

+1

n4an commented 2 years ago

"sa ma cac pe el " in romanian is equal to "to shit on it" as you called things, that's how it works

n4an commented 2 years ago

it's a disaster

MattFaz commented 2 years ago

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.