nuxt / create-nuxt-app

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

Cannot finish setup using create-nuxt-app@3.6.0 #977

Open marcodarko opened 1 year ago

marcodarko commented 1 year ago

Environment

Reproduction

npx create-nuxt-app@3.6.0 nuxt-app

that's all, can't get past this step. I gave up trying using nuxi because that's also not working https://github.com/nuxt/nuxt.js/issues/14928

Describe the bug

Unable to finish initial installation using create-nuxt-app. After being unable to initaliza an app using nuxi I tried using create-nuxt-app but that is also not working. On a separate issue: https://github.com/nuxt/nuxt.js/issues/14928 I also cannot finish setting up an app.

Additional context

Just need to be able to get past initial set up. Nothing seems to work.

Logs

create-nuxt-app v3.6.0
✨  Generating Nuxt.js project in nuxt-app
? Project name: nuxt-app
? Programming language: JavaScript
? Package manager: Npm
? UI framework: None
? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert se
lection)
? Linting tools: ESLint, Prettier
? Testing framework: Jest
? Rendering mode: Universal (SSR / SSG)
? Deployment target: Server (Node.js hosting)
? Development tools: (Press <space> to select, <a> to toggle all, <i> to invert 
selection)
? Continuous integration: None
? Version control system: Git
Trace: ReferenceError: ejs:1
 >> 1| <%_ if (isWindows === true) { _%>
    2| command_exists () {
    3|   command -v "$1" >/dev/null 2>&1
    4| }

isWindows is not defined
    at eval (eval at compile (/Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/ejs/lib/ejs.js:652:12), <anonymous>:10:8)
    at Object.anonymous [as fn] (/Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/ejs/lib/ejs.js:682:17)
    at Transformer.render (/Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/jstransformer/index.js:289:25)
    at /Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/sao/lib/runActions.js:69:27
    at Array.forEach (<anonymous>)
    at /Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/sao/lib/runActions.js:61:20
    at /Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/majo/dist/majo.cjs.js:58:49 {
  path: ''
}
    at /Users/marco/.npm/_npx/711906bd95ed3b8c/node_modules/create-nuxt-app/lib/cli.js:51:17
pi0 commented 1 year ago

Hi @marcodarko. I've moved issue to the create-nuxt-app repository. it is i guess because of an older dependency to stdenv. BTW you should use npx nuxi init to create a Nuxt 3 app.

marcodarko commented 1 year ago

@pi0 thank you for doing that, i appreciate it. I have tried that but as I mentioned in the issue that's also sadly not working, I have a separate issue using nuxi.

pi0 commented 1 year ago

Do you mind to point to the issue you have with nuxi init? Would be glad to help investigate and fix :)