Create-nuxt-app: Trace: Error: Cannot find module './prompts'

Created on 30 Sep 2019  路  12Comments  路  Source: nuxt/create-nuxt-app

after yarn create nuxt-app auth
error :
Trace: Error: Cannot find module './prompts'

Most helpful comment

All 12 comments

Getting the same issue with both npx create-nuxt-app <name> and npm init nuxt-app <name>
Using Windows, node version 12.3.1 and npm 6.9.0

Same issue #349
I recommend using the previous version until this issue is fixed

Same issue #349
I recommend using the previous version until this issue is fixed

how?

Yesterday I ran npx create-nuxt-app and it worked. Today not. Thanks @wmartins

Same issue here.

OS : Win 10

node -v
v10.11.0

npm -v
6.11.3

Just faced this issue:

node -v
v12.10.0
npm -v
6.10.3

npx create-nuxt-app project-name works yesterday but getting below issue today
Trace: { Error: Cannot find module './prompts'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)

Worth the wait for npm to update or use 2.10.1? Thanks!

Do npm update -g create-nuxt-app and then try, it should fix. Worked for me.

Was this page helpful?
0 / 5 - 0 ratings