create-nuxt-app
create-nuxt-app copied to clipboard
Error when trying to build nuxt app
I have created multiple nuxt apps before and never had this error. But now when I run the command npm init nuxt-app <project-name>
, I get this error:
`/c/Users/devel/AppData/Roaming/npm/create-nuxt-app: line 2: sed: command not found /c/Users/devel/AppData/Roaming/npm/create-nuxt-app: line 2: dirname: command not found /c/Users/devel/AppData/Roaming/npm/create-nuxt-app: line 4: uname: command not found internal/modules/cjs/loader.js:968 throw err; ^
Error: Cannot find module 'C:\Program Files\Git\node_modules\create-nuxt-app\lib\cli.js' [90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)[39m [90m at Function.Module._load (internal/modules/cjs/loader.js:841:27)[39m [90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)[39m [90m at internal/main/run_main_module.js:17:47[39m { code: [32m'MODULE_NOT_FOUND'[39m, requireStack: [] } [37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m 1 [0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mpath[0m D:\Vue\Nuxt [0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m command failed [0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcommand[0m C:\Program Files\git\bin\bash.exe -c create-nuxt-app "tpshopping" [0m [37;40mnpm[0m [0m[31;40mERR![0m[35m[0m A complete log of this run can be found in: [0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m C:\Users\devel\AppData\Local\npm-cache_logs\2021-04-28T20_12_22_954Z-debug.log [0m`
Can anyone help me fix this?
@TrexKikBut I would suggest first installing WSL following these directions. You'll have the most consistent experience that way.
You may also have better luck running npx create-nuxt-app tpshopping
instead.
tried using npx create-nuxt-app
and when I try to build on a live server I get an error that says.
cannot find module 'vuetify/es5/util/colors'.
cant seem to figure it out.
@narthkings Make sure to add vuetify
to your dependencies.