Jumar Juaton
Jumar Juaton

Reputation: 113

I'm getting an error when running npm run deploy

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.

Upvotes: 2

Views: 223

Answers (1)

Jumar Juaton
Jumar Juaton

Reputation: 113

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

Upvotes: 1

Related Questions