I have this github pipeline I just created to automatically deploy an angular js project, that is compiled with the gulp command.
name: Node.js CI with Gulp
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [6.3.0]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Install dependencies
run: node -v
- name: npm version
run: npm -v
- name: Install Gulp CLI
run: npm install -g gulp-cli
- name: Run Gulp
run: gulp
- name: List files after Gulp
run: ls
However, when I get to the npm install -g gulp-cli i get this error:
npm ERR! Linux 6.5.0-1021-azure
npm ERR! argv "/opt/hostedtoolcache/node/6.3.0/x64/bin/node" "/opt/hostedtoolcache/node/6.3.0/x64/bin/npm" "install" "-g" "gulp-cli"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1
This is my gulpfile by the way:
var gulp = require('gulp');
var requireDir = require('require-dir');
requireDir('./gulp-tasks');
gulp.task('default', ['sass', 'templatecache', 'js', 'lessCSS', 'sassCSS']);
I haven’t tried anything new because I’m new to pipelines.
New contributor
newuser147 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.