EvanAgee / vuejs-wordpress-theme-starter

A WordPress theme with the guts ripped out and replaced with Vue.
https://vuewp.com/
1.6k stars 281 forks source link

npm install returns a list of errors #47

Closed MarcRuemekorf closed 5 years ago

MarcRuemekorf commented 5 years ago

Hi Evan,

I'm having trouble getting your theme up and running. I installed Wordpress on a local (MAMP) server and simply copied the theme files to my theme directory and took things from there. Following the quickstart video and the readme file I tried running npm install inside the theme directory. This in turn just gave me a bunch of errors right off the bat. What could I be doing wrong?

Quorong commented 5 years ago

I just spent the better part of a day getting this to run locally. I ran into problems with trying to build the node-gyp dependency on Node 10.0.0+ on Windows. I finally got it working though, maybe I can help.

1) Are you trying to run this on Windows?

2) What do the errors you get look like?

MarcRuemekorf commented 5 years ago

Hi Quorong,

Thanks for your reply and help of course! Let's see:

  1. No I'm running on Mac I run a local (apache) server using Mamp Pro.

  2. It's a whole list of errors just by trying to install NPM here's a couple:

There quite a bit more of these errors, mostly gyp ERR, is there a specific error you're looking for? I have been using NPM for a couple of Wordpress websites so I'm sure it's up-to-date. Yarn seems to be an option too but that isn't installed correctly on my machine (yet) hence the NPM route. Would that be a viable option? In the quick start video he simply runs Yarn run build. If all it takes is to correctly configure Yarn I'll do that.

EvanAgee commented 5 years ago

@MarcRuemekorf I've just released an updated version of the project that will address many of these issues. Please note that the paths of the JS and CSS have changed so you may need to update your project. https://github.com/EvanAgee/vuejs-wordpress-theme-starter/issues/48

MarcRuemekorf commented 5 years ago

@EvanAgee Awesome! Thanks Evan I'll check it out.

MarcRuemekorf commented 5 years ago

That did it! Thanks for the update @EvanAgee