W
W
WhatIsHTML2017-10-03 03:00:54
Angular
WhatIsHTML, 2017-10-03 03:00:54

Deploy Angular4 + Gitlab?

I'm trying to deploy an Angular4+NodeJS project to Heroku. I can't get past Gitlab CI Runner at the moment.
My .yml file:

image: node:boron

before_script:
  - apt-get -qq update
  - apt-get -qq install -y python2.7 python2.7-dev build-essential make gcc g++ libicu-dev
  - npm -g install npm --silent
  - npm set progress=false
  - npm install --silent


production:
  type: deploy
  script:
  - npm install
  - npm install @angular/cli
  - ./node_modules/@angular/cli/bin/ng build
  - apt-get install -yqq ruby ruby-dev
  - gem install dpl
  - dpl --provider=heroku --app=app-name --api-key=xxx
  only:
  - master

I am getting an error:
$ npm set progress=false
module.js:471
    throw err;
    ^

Error: Cannot find module 'process-nextick-args'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:26:23)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
ERROR: Job failed: exit code 1

I already set process-nextick-args manually, it did not help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question