Here is part of the console output log of a Jenkins build of my project. I have inserted two find commands in the build script just before invoking "gulp default" to show why vinyl's lib/cloneBuffer.js cannot be found. There are lots of copies of the file, just none on that subtree of node_modules.
...
Error: Cannot find module './lib/cloneBuffer'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/var/lib/jenkins/workspace/****/node_modules/gulp/node_modules/gulp-util/node_modules/vinyl/index.js:4:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
This issue can be closed. It appears that there was a glitch while downloading the dependencies originally. Wiping out the node_modules folder and rerunning the build cleared the problem.
Here is part of the console output log of a Jenkins build of my project. I have inserted two find commands in the build script just before invoking "gulp default" to show why vinyl's lib/cloneBuffer.js cannot be found. There are lots of copies of the file, just none on that subtree of node_modules. ...
Error: Cannot find module './lib/cloneBuffer' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/var/lib/jenkins/workspace/****/node_modules/gulp/node_modules/gulp-util/node_modules/vinyl/index.js:4:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)