Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline break in node-gyp rebuild

Arthur Berkowitz October 8, 2020

we get  

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.143-flatcar
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/atlassian/pipelines/agent/build/project/common/CommonCode/node_modules/ref
gyp ERR! node -v v12.19.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN common@1.0.0 No description
npm WARN common@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ref@1.3.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.3.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-08T06_04_08_175Z-debug.log

 

our script start:
 

image: markhobson/node-chrome

pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- apt-get update
- apt-get install zip curl gnupg2 wget build-essential -y
- npm install -g @angular/cli@8 pkg@4.3.8 typescript@3 jest
- ...

1 answer

0 votes
Arthur Berkowitz October 8, 2020

the docker

image: markhobson/node-chrome

updated to Node 12

node gyp doesn't like it?!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events