Started by user DIM Build Building in workspace /var/jenkins_home/workspace/DIM-Diamant-Angular using credential jenkins_gitlab > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://gitlab.com/datainmotion/diamant/frontend.git # timeout=10 Fetching upstream changes from https://gitlab.com/datainmotion/diamant/frontend.git > git --version # timeout=10 using GIT_ASKPASS to set credentials The Gitlab user for the jenkins > git fetch --tags --progress https://gitlab.com/datainmotion/diamant/frontend.git +refs/heads/*:refs/remotes/origin/* > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10 Checking out Revision b3708dd0703e4c76aeda76159a2bc87e6aff6cad (refs/remotes/origin/develop) > git config core.sparsecheckout # timeout=10 > git checkout -f b3708dd0703e4c76aeda76159a2bc87e6aff6cad Commit message: "keycloak theme files" > git rev-list --no-walk b3708dd0703e4c76aeda76159a2bc87e6aff6cad # timeout=10 $ /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/bin/npm install -g @angular/cli @angular-devkit/build-angular @angular/compiler-cli /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/bin/ng -> /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/bin/ng /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/bin/ngc -> /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/src/main.js /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/bin/ivy-ngcc -> /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/ngcc/main-ngcc.js /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/bin/ng-xi18n -> /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/src/extract_i18n.js > @angular/cli@8.3.3 postinstall /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli > node ./bin/postinstall/script.js npm WARN @angular/compiler-cli@8.2.5 requires a peer of @angular/compiler@8.2.5 but none is installed. You must install peer dependencies yourself. npm WARN @angular/compiler-cli@8.2.5 requires a peer of typescript@>=3.4 <3.6 but none is installed. You must install peer dependencies yourself. npm WARN @angular-devkit/build-angular@0.803.3 requires a peer of typescript@>=3.1 < 3.6 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/@angular-devkit/build-angular/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@angular/compiler-cli/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@angular-devkit/build-angular/node_modules/webpack-dev-server/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@angular-devkit/build-angular/node_modules/watchpack/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + @angular/cli@8.3.3 + @angular/compiler-cli@8.2.5 + @angular-devkit/build-angular@0.803.3 added 201 packages from 119 contributors and updated 2 packages in 22.953s [DIM-Diamant-Angular] $ /bin/sh -xe /tmp/jenkins5253112420824241096.sh + npm run build > diamant-frontend@0.0.0 build /var/jenkins_home/workspace/DIM-Diamant-Angular > ng build An unhandled exception occurred: Cannot find module 'typescript' Require stack: - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/src/ngtsc/file_system/src/compiler_host.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/src/ngtsc/file_system/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/compiler-cli/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/typescript.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular-devkit/build-angular/src/browser/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/models/architect-command.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/commands/build-impl.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/export-ref.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/utilities/json-schema.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/models/command-runner.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/lib/cli/index.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/lib/init.js - /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.10/lib/node_modules/@angular/cli/bin/ng See "/tmp/ng-omiEOI/angular-errors.log" for further details. npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! diamant-frontend@0.0.0 build: `ng build` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the diamant-frontend@0.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! /var/jenkins_home/.npm/_logs/2019-09-06T13_07_25_689Z-debug.log Build step 'Execute shell' marked build as failure Finished: FAILURE