Hello,
specifying "image: node:14.X" in the pipeline leads to the "npm install" failure. The "npm install" will also fail, if I use "node:16".
But if I specify " image:atlassian/default-image:3" the " npm install" will succeed.
According to the documentation:
Question:
what makes the images different?
Bitbucket_pipelines.yml:
working version:
image: atlassian/default-image:3
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- node
script:
- npm install
```
Failing version:
image: node:14.17.5
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- node
script:
- npm install
Log:
<span>npm ERR! checking the name lister (/usr/bin/nm -B) interface... BSD nm</span>
<span>npm ERR! checking whether ln -s works... yes</span>
<span>npm ERR! checking the maximum length of command line arguments... 1572864</span>
<span>npm ERR! checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop</span>
<span>npm ERR! checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop</span>
<span>npm ERR! checking for /usr/bin/ld option to reload object files... -r</span>
<span>npm ERR! checking for objdump... objdump</span>
<span>npm ERR! checking how to recognize dependent libraries... pass_all</span>
<span>npm ERR! checking for dlltool... no</span>
<span>npm ERR! checking how to associate runtime and link libraries... printf %s\n</span>
<span>npm ERR! checking for archiver @FILE support... @</span>
<span>npm ERR! checking for strip... strip</span>
<span>npm ERR! checking for ranlib... ranlib</span>
<span>npm ERR! checking command to parse /usr/bin/nm -B output from gcc object... ok</span>
<span>npm ERR! checking for sysroot... no</span>
<span>npm ERR! checking for a working dd... /bin/dd</span>
<span>npm ERR! checking how to truncate binary pipes... /bin/dd bs=4096 count=1</span>
<span>npm ERR! checking for mt... no</span>
<span>npm ERR! checking if : is a manifest tool... no</span>
<span>npm ERR! checking for ANSI C header files... yes</span>
<span>npm ERR! checking for sys/types.h... yes</span>
<span>npm ERR! checking for sys/stat.h... yes</span>
<span>npm ERR! checking for stdlib.h... yes</span>
<span>npm ERR! checking for string.h... yes</span>
<span>npm ERR! checking for memory.h... yes</span>
<span>npm ERR! checking for strings.h... yes</span>
<span>npm ERR! checking for inttypes.h... yes</span>
<span>npm ERR! checking for stdint.h... yes</span>
<span>npm ERR! checking for unistd.h... yes</span>
<span>npm ERR! checking for dlfcn.h... yes</span>
<span>npm ERR! checking for objdir... .libs</span>
<span>npm ERR! checking if gcc supports -fno-rtti -fno-exceptions... no</span>
<span>npm ERR! checking for gcc option to produce PIC... -fPIC -DPIC</span>
<span>npm ERR! checking if gcc PIC flag -fPIC -DPIC works... yes</span>
<span>npm ERR! checking if gcc static flag -static works... yes</span>
<span>npm ERR! checking if gcc supports -c -o file.o... yes</span>
<span>npm ERR! checking if gcc supports -c -o file.o... (cached) yes</span>
<span>npm ERR! checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes</span>
<span>npm ERR! checking dynamic linker characteristics... GNU/Linux <a href="http://ld.so/" rel="noopener nofollow noreferrer" target="_blank">ld.so</a></span>
<span>npm ERR! checking how to hardcode library paths into programs... immediate</span>
<span>npm ERR! checking whether stripping libraries is possible... yes</span>
<span>npm ERR! checking if libtool supports shared libraries... yes</span>
<span>npm ERR! checking whether to build shared libraries... no</span>
<span>npm ERR! checking whether to build static libraries... yes</span>
<span>npm ERR! checking whether ln -s works... yes</span>
<span>npm ERR! checking for pkg-config... /usr/bin/pkg-config</span>
<span>npm ERR! checking pkg-config is at least version 0.9.0... yes</span>
<span>npm ERR! checking size of size_t... 8</span>
<span>npm ERR! checking whether compiler supports pointers to undefined structures... yes</span>
<span>npm ERR! checking whether __SUNPRO_C is declared... no</span>
<span>npm ERR! checking for pow in -lm... yes</span>
<span>npm ERR! checking for libpng... yes</span>
<span>npm ERR! checking for ANSI C header files... (cached) yes</span>
<span>npm ERR! checking stddef.h usability... yes</span>
<span>npm ERR! checking stddef.h presence... yes</span>
<span>npm ERR! checking for stddef.h... yes</span>
<span>npm ERR! checking for stdlib.h... (cached) yes</span>
<span>npm ERR! checking locale.h usability... yes</span>
<span>npm ERR! checking locale.h presence... yes</span>
<span>npm ERR! checking for locale.h... yes</span>
<span>npm ERR! checking for string.h... (cached) yes</span>
<span>npm ERR! checking for sys/types.h... (cached) yes</span>
<span>npm ERR! checking for an ANSI C-conforming const... yes</span>
<span>npm ERR! checking whether char is unsigned... no</span>
<span>npm ERR! checking for inline... inline</span>
<span>npm ERR! checking for size_t... yes</span>
<span>npm ERR! checking for unsigned char... yes</span>
<span>npm ERR! checking for unsigned short... yes</span>
<span>npm ERR! checking if right shift is signed... yes</span>
<span>npm ERR! checking for memset... yes</span>
<span>npm ERR! checking for memcpy... yes</span>
<span>npm ERR! checking libjpeg API version... 8.0</span>
<span>npm ERR! checking libjpeg shared library version... 8.1.2</span>
<span>npm ERR! checking whether the linker supports version scripts... yes (GNU style)</span>
<span>npm ERR! checking whether to use version script when building mozjpeg... yes</span>
<span>npm ERR! checking for inline... inline __attribute__((always_inline))</span>
<span>npm ERR! checking whether to include arithmetic encoding support... yes</span>
<span>npm ERR! checking whether to include arithmetic decoding support... yes</span>
<span>npm ERR! checking whether to use 12-bit samples... no</span>
<span>npm ERR! checking whether to build TurboJPEG C wrapper... yes</span>
<span>npm ERR! checking whether to build TurboJPEG Java wrapper... no</span>
<span>npm ERR! checking if we have SIMD optimisations for cpu type... yes (x86_64)</span>
<span>npm ERR! checking for nasm... no</span>
<span>npm ERR! checking for nasmw... no</span>
<span>npm ERR! checking for yasm... no</span>
<span>npm ERR! </span>
<span>npm ERR! at /opt/atlassian/pipelines/agent/build/node_modules/bin-build/node_modules/execa/index.js:231:11</span>
<span>npm ERR! at runMicrotasks (<anonymous>)</span>
<span>npm ERR! at processTicksAndRejections (internal/process/task_queues.js:95:5)</span>
<span>npm ERR! at async Promise.all (index 0)</span>
<span>npm ERR! A complete log of this run can be found in:</span>
<span>npm ERR! /root/.npm/_logs/2022-01-23T22_52_48_131Z-debug-0.log</span>