I use a MacOS High Sierra. For anyone with experience with Nuxt.js, the command
npx create-nuxt-app <project-name>
has not worked for me at all!
I consistently come across errors from npm
saying I need to update my dependencies. I first tried updating each dependency using npm outdated
(check for outdated packages) and
npm update <pkg name>
. This did not work.
I also uninstalled and reinstalled node
and npm
and tired the above (and below processes). Still did not work.
No matter what I do, the Terminal keeps saying my core-js
needed to be updated so I did that (I tried both npm i core-js
and npm i core-js
) - they did not work.
To update the npm
dependencies, I used the command npm install -g npm-check-updates
followed by ncu -u
, and then tried both npm update
and npm install
. Nothing has worked so far.
Lastly, I've tried creating a package.json
since npm
complained that I had no package.json so I created one using npm init
and following the instructions to commit the file(s) created. Still, nothing after running npx create-nuxt-app <project-name>
.
What is happening? Has anyone experienced this issue? I really love Nuxt.js and I've tried this for an entire day but I'm giving up on using NuxtJS.
EDIT: I managed to solve part of my problem by creating a Nuxt app from scratch. However, I get the following errors:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nuxt-app@2.11.0 dev:
nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nuxt-app@2.11.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.