Guest User

Untitled

a guest
Jul 15th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. gulp.task('Watch source files', () => {
  2.  
  3. let imagesWatcher = gulp.watch('src/images/**/*.*');
  4.  
  5. imagesWatcher.on('add', file => {
  6.  
  7. // error
  8. fs.copyFile(file, 'dist/images', error => { if (error) throw error;});
  9. });
  10. });
  11.  
  12. Error: EPERM: operation not permitted, copyfile `...` -> `...`
Add Comment
Please, Sign In to add comment