I'm attempting to use Node + Gulp during a Visual Studio Online build process via a Hosted Agent.
The first step (Node Install) works correctly, however the second returns :
[command]C:\NPM\Modules\gulp.cmd --gulpfile C:\a\1\s\$(build.AgentDirectory)\Platform\gulpfile.js \Platform\gulpfile.js was unexpected at this time.
C:\a\1\s> "C:\NPM\Modules\node.exe" "C:\NPM\Modules\node_modules\gulp\bin\gulp.js" --gulpfile C:\a\1\s\$(build.AgentDirectory)\Platform\gulpfile.js
[error]Gulp failed with error: C:\NPM\Modules\gulp.cmd failed with return code: 255
I've taken a look at similar issues which highlight installing node globally and/or ensuring no spaces are within your project files. Neither applies or seems to help.
Finally here is how my paths and steps are configured :
- NPM Install (Working folder : $/Platform/Platform, Command : Install)
- Gulp (Gulp file path : $/Platform/Platform/gulpfile.js, Gulpjs location : node_modules/gulp/bin/gulp.js, Working folder blank)
Setting the Gulp file path seems mandatory since the Gulp.js is in a subdirectory within the repository. All other settings doesn't seem to help very much.
Any suggestions?