I'm getting an error when running npm run deploy

Viewed 102

I'm trying to deploy my NextJS app to Github pages. I already installed npm gh-pages and was getting errors when I always run npm run deploy.

Any thoughts why this is happening?

Here's the error when I run the command:

enter image description here

While here's my debug log file:

enter image description here

Any help is much appreciated.

1 Answers

Fixed this. I just switch my npm version to 12.15.0 using nvm. I run nvm use 12.15.0.

Related