-
Bug
-
Resolution: Fixed
-
Medium
It compiles fine on 10.1 on both OS X and bitbucket
It compiles fine on 10.2 on OS X, but fails on bitbucket
bitbucket-pipelines.yml
image: node:10.2
pipelines:
default:
- step:
caches:
- node
name: Test
script:
- npm install -g npm
- npm ci
log
+ npm ci npm WARN prepare removing existing node_modules/ before installation > sha3@1.2.2 install /opt/atlassian/pipelines/agent/build/node_modules/sha3 > node-gyp rebuild make: Entering directory '/opt/atlassian/pipelines/agent/build/node_modules/sha3/build' CXX(target) Release/obj.target/sha3/src/addon.o In file included from ../src/addon.cpp:1:0: /root/.node-gyp/10.2.0/include/node/node.h:53:50: fatal error: core.h: No such file or directory #include "core.h" // NOLINT(build/include_order) ^ compilation terminated. sha3.target.mk:99: recipe for target 'Release/obj.target/sha3/src/addon.o' failed make: Leaving directory '/opt/atlassian/pipelines/agent/build/node_modules/sha3/build' make: *** [Release/obj.target/sha3/src/addon.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.14.11-coreos gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/atlassian/pipelines/agent/build/node_modules/sha3 gyp ERR! node -v v10.2.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sha3@1.2.2 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sha3@1.2.2 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/2018-05-25T12_31_50_681Z-debug.log