luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
751 stars 305 forks source link

Can't run gulp #26

Closed luxarts closed 6 years ago

luxarts commented 6 years ago

Hello!

I'm trying to run your gulp file. I folllowed all the steps froma clean install but when I try to run "gulp package" from the command line in the directory I get "Error: Task requires a name that is a string". I fixed it removing the lines like gulp.task(clean); but now I get a new error, "TypeError: gulp.series is not a function". I found that it's because gulp.series was included in gulp 4.0.0 and when I run npm install --save-dev gulp I get 3.9.0. These were the steps you follow to install and compile it? If not, can you fix it in the wiki?

Thanks!

luc-github commented 6 years ago

I am guessing you use old node, be sure you use latest LTS one (V8.11.3)

luxarts commented 6 years ago

I'm using node 8.10.0 and npm 6.2.0

Edit: Updated to node 8.11.3. Still the same problem.

luc-github commented 6 years ago

Did you reinstall everything after updating node to 8.11.3 ?

luxarts commented 6 years ago

Yes, I ran the install.bat file.

luc-github commented 6 years ago

here what I have :

E:\github\ESP3D-WEBUI>node -v
v8.11.3

E:\github\ESP3D-WEBUI>gulp -v
[22:17:03] CLI version 2.0.1
[22:17:03] Local version 4.0.0-alpha.3

E:\github\ESP3D-WEBUI>npm -v
5.6.0
luc-github commented 6 years ago

check the versions I gave you if you do not have same it may be the root cause

luxarts commented 6 years ago

Add to the wiki the steep to install gulp 4.0.0 (npm install gulp@next), that was one problem because I was using npm install gulp. Also the install.bat script doesn't work. I had to install individualy each module and some errors ocurred in the middle (fixed with npm audit fix and npm install).

I know it's not a problem from your software but I tell you to know about this issue.

Tested under Windows 10 64 bits v1813 (build version 17134.165)

luc-github commented 6 years ago

weird as this what I use to install - and I installed it several times

luc-github commented 6 years ago

Guld need to be installed local and global I see wiki miss the local command npm install --save-dev gulp

luc-github commented 6 years ago

Anyway you managed to install so this is the key point - have fun ^_^

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.