gulp 4 doesn't move files

Created on 3 Mar 2019  路  13Comments  路  Source: gulpjs/gulp

Recently upgraded system to Windows 7 64x and then updated to Node 10.x

All gulp projects fell down working.

I think that gulp 4 will be better for Node 10.x, so I'm showing example with all updated config:

E:\[WEB]\PROJECTS\test-project>node -v
v10.15.1

E:\[WEB]\PROJECTS\test-project>gulp -v
[15:31:29] CLI version 2.0.1
[15:31:29] Local version 4.0.0

image

Project structure
image

Gulpfile.js
image

After running gulp comand - nothing being put into prod folder

Reinstalling Windows or rollback to Node 8.x didn't help.

Tried both 3 and 4 gulp versions, installed glob package - same effect.

I've been trying to debug, read issues, created stackoverflow issue(no one left a comment) - nothing can help.

Most helpful comment

Amazing!!!
I think this was a reason!!!!
It worked in E:WEB directory!!!!

Lot of thanks. phated!

All 13 comments

@davegahn why do you have glob installed as a devDep?

edit: also, what is the output in your terminal from the gulp command?

Somitemes feel confusing if I have to install as Dep
Oh, forgot to show console )))
image
No errrors showing

Recently I thought that there's something with my Windows or Nodejs, but after I ran a webpack project and it worked well, I decided to write here.

I'd say that you should remove the glob dependency (gulp handles that for you), any package-lock or yarnlock file you have, remove node_modules and reinstall.

Also, delete the prod directory in your project.

1) Deleted packege.lock and prod directory
2) npm prune & rm -r node_modules
3) npm cache clear --force
4) npm i
5) gulp
Fail((
image

That's beyond weird. None of the core devs have Windows to recreate this. Can you add gulp-debug in between src and dest?

1) npm install --save-dev gulp-debug
image

I'm not shure which parameters to apply for gulp-debug

That's helpful. It means no items are picked up by src. I'm still curious as to why, but can you switch dev/index.html to dev/*.html and run it again?

image

I'm a little curious actually. what if you renamed your [WEB] directory to just WEB (or just create a new directory and copy the gulp project over to it). I'm thinking the square-brackets might be messing up some pathing stuff.

Amazing!!!
I think this was a reason!!!!
It worked in E:WEB directory!!!!

Lot of thanks. phated!

@davegahn thanks for taking the time to debug, I'll create a follow up issue about those characters.

Follow up issue created and linked above.

Was this page helpful?
0 / 5 - 0 ratings