You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn global v1.22.17
[1/4] 🔍 Resolving packages...
warning optipng-bin > bin-build > tempfile > [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
error /usr/local/share/.config/yarn/global/node_modules/optipng-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: /usr/local/share/.config/yarn/global/node_modules/optipng-bin
Output:
connect ECONNREFUSED 0.0.0.0:443
optipng pre-build test failed
compiling from source
Error: Command failed: /bin/sh -c make install
pngrtran.c:99:1: warning: unused function 'png_rtran_ok' [-Wunused-function]
png_rtran_ok(png_structrp png_ptr, int need_IHDR)
^
1 warning generated.
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture arm64:
"_png_init_filter_functions_neon", referenced from:
_png_read_filter_row in libpng.a(pngrutil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [optipng] Error 1
make: *** [install] Error 2
at /usr/local/share/.config/yarn/global/node_modules/execa/index.js:231:11
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async file:///usr/local/share/.config/yarn/global/node_modules/optipng-bin/lib/install.js:18:4
sudo yarn global add optipng-bin
yarn global v1.22.17
[1/4] 🔍 Resolving packages...
warning optipng-bin > bin-build > tempfile > [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
error /usr/local/share/.config/yarn/global/node_modules/optipng-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: /usr/local/share/.config/yarn/global/node_modules/optipng-bin
Output:
connect ECONNREFUSED 0.0.0.0:443
optipng pre-build test failed
compiling from source
Error: Command failed: /bin/sh -c make install
pngrtran.c:99:1: warning: unused function 'png_rtran_ok' [-Wunused-function]
png_rtran_ok(png_structrp png_ptr, int need_IHDR)
^
1 warning generated.
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture arm64:
"_png_init_filter_functions_neon", referenced from:
_png_read_filter_row in libpng.a(pngrutil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [optipng] Error 1
make: *** [install] Error 2
cd src/optipng &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make install &&
cd ../..
cd ../libpng &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile PNGLIBCONF_H_PREBUILT=pnglibconf.h.optipng &&
cd ../optipng
cp pnglibconf.h.optipng pnglibconf.h
gcc -c -I../zlib -O2 -Wall -Wextra -o png.o png.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngerror.o pngerror.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngget.o pngget.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngmem.o pngmem.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngpread.o pngpread.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngread.o pngread.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngrio.o pngrio.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngrtran.o pngrtran.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngrutil.o pngrutil.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngset.o pngset.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngtrans.o pngtrans.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngwio.o pngwio.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngwrite.o pngwrite.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngwtran.o pngwtran.c
gcc -c -I../zlib -O2 -Wall -Wextra -o pngwutil.o pngwutil.c
ar rcs libpng.a png.o pngerror.o pngget.o pngmem.o pngpread.o pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
ranlib libpng.a
gcc -c -I../zlib -O2 -Wall -Wextra -o pngtest.o pngtest.c
gcc -L../zlib -o pngtest pngtest.o libpng.a -lz -lm
cd ../opngreduc &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile libopngreduc.a &&
cd ../optipng
gcc -c -O2 -Wall -Wextra -I../libpng -o opngreduc.o opngreduc.c
ar cru libopngreduc.a opngreduc.o
ranlib libopngreduc.a
cd ../gifread &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile libgifread.a &&
cd ../optipng
gcc -c -O2 -Wall -Wextra -o gifread.o gifread.c
ar cru libgifread.a gifread.o
ranlib libgifread.a
cd ../pnmio &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile libpnmio.a &&
cd ../optipng
gcc -c -O2 -Wall -Wextra -o pnmin.o pnmin.c
gcc -c -O2 -Wall -Wextra -o pnmout.o pnmout.c
gcc -c -O2 -Wall -Wextra -o pnmutil.o pnmutil.c
ar cru libpnmio.a pnmin.o pnmout.o pnmutil.o
ranlib libpnmio.a
cd ../minitiff &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile libminitiff.a &&
cd ../optipng
gcc -c -O2 -Wall -Wextra -o tiffread.o tiffread.c
gcc -c -O2 -Wall -Wextra -o tiffutil.o tiffutil.c
ar cru libminitiff.a tiffread.o tiffutil.o
ranlib libminitiff.a
cd ../pngxtern &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile libpngxtern.a &&
cd ../optipng
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxread.o pngxread.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxrbmp.o pngxrbmp.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxrgif.o pngxrgif.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxrjpg.o pngxrjpg.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxrpnm.o pngxrpnm.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxrtif.o pngxrtif.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxio.o pngxio.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxmem.o pngxmem.c
gcc -c -O2 -Wall -Wextra -I../libpng -I../gifread -I../pnmio -I../minitiff -o pngxset.o pngxset.c
ar cru libpngxtern.a pngxread.o pngxrbmp.o pngxrgif.o pngxrjpg.o pngxrpnm.o pngxrtif.o pngxio.o pngxmem.o pngxset.o
ranlib libpngxtern.a
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o optipng.o optipng.c
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o optim.o optim.c
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o bitset.o bitset.c
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o ioutil.o ioutil.c
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o ratio.o ratio.c
gcc -c -O2 -Wall -Wextra -I../cexcept -I../libpng -I../opngreduc -I../pngxtern -o wildargs.o wildargs.c
gcc -s -o optipng optipng.o optim.o bitset.o ioutil.o ratio.o wildargs.o ../opngreduc/libopngreduc.a ../pngxtern/libpngxtern.a ../libpng/libpng.a ../gifread/libgifread.a ../pnmio/libpnmio.a ../minitiff/libminitiff.a -lz -lm
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
The text was updated successfully, but these errors were encountered: