Error in running nuxt project: "'nuxt' is not recognized as an internal or external command"
Full error message
When I tried to run npm run dev in my nuxt project, my console returned this message: 'nuxt' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] dev: `nuxt` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Solutionsource: stackoverflow \u2197
I solved this problem. I was looking in stackoverflow for similar problems and apparently the problem was the npm cache. I will let a link bellow with the solution and a quick sample of what i did. Link to the answer: npm ERR! code ELIFECYCLE Step 1: npm cache clean --force Step 2: Delete node_modules by $ rm -rf node_modules folder or delete it manually by going into the directory and right-click > delete. Delete package-lock.json file too. Step 3: npm install To start again, npm start Thanks everyone who take time to help, really appreciate.
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/ff5e2b346c45d793f055a766d8ac1a2da959c6c27dc7fa841e417fa290e2a8c8hash \u00b7 ff5e2b346c45d793f055a766d8ac1a2da959c6c27dc7fa841e417fa290e2a8c8