Closed enovikov11 closed 1 year ago
npm init npm i png-img
png-img@2.3.0 install /Users/enovikov11/work/learning/node_modules/png-img node-gyp rebuild
CC(target) Release/obj.target/libpng/third_party/libpng/png.o CC(target) Release/obj.target/libpng/third_party/libpng/pngerror.o CC(target) Release/obj.target/libpng/third_party/libpng/pngget.o CC(target) Release/obj.target/libpng/third_party/libpng/pngmem.o CC(target) Release/obj.target/libpng/third_party/libpng/pngpread.o CC(target) Release/obj.target/libpng/third_party/libpng/pngread.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrio.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrtran.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrutil.o CC(target) Release/obj.target/libpng/third_party/libpng/pngset.o CC(target) Release/obj.target/libpng/third_party/libpng/pngtest.o CC(target) Release/obj.target/libpng/third_party/libpng/pngtrans.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwio.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwrite.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwtran.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwutil.o LIBTOOL-STATIC Release/png.a CC(target) Release/obj.target/zlib/third_party/zlib/adler32.o CC(target) Release/obj.target/zlib/third_party/zlib/compress.o CC(target) Release/obj.target/zlib/third_party/zlib/crc32.o CC(target) Release/obj.target/zlib/third_party/zlib/deflate.o CC(target) Release/obj.target/zlib/third_party/zlib/gzclose.o CC(target) Release/obj.target/zlib/third_party/zlib/gzlib.o CC(target) Release/obj.target/zlib/third_party/zlib/gzread.o CC(target) Release/obj.target/zlib/third_party/zlib/gzwrite.o CC(target) Release/obj.target/zlib/third_party/zlib/infback.o CC(target) Release/obj.target/zlib/third_party/zlib/inffast.o CC(target) Release/obj.target/zlib/third_party/zlib/inflate.o ../third_party/zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
1 warning generated. CC(target) Release/obj.target/zlib/third_party/zlib/inftrees.o CC(target) Release/obj.target/zlib/third_party/zlib/trees.o CC(target) Release/obj.target/zlib/third_party/zlib/uncompr.o CC(target) Release/obj.target/zlib/third_party/zlib/zutil.o LIBTOOL-STATIC Release/zlib.a CXX(target) Release/obj.target/png_img/src/init.o CXX(target) Release/obj.target/png_img/src/PngImgAdapter.o ../src/PngImgAdapter.cc:93:10: error: no matching member function for call to 'Set' obj->Set(Nan::New<String>("r").ToLocalChecked(), Nan::New<Number>(pPxl->r)); ~~~~~^~~ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^ ../src/PngImgAdapter.cc:94:10: error: no matching member function for call to 'Set' obj->Set(Nan::New<String>("g").ToLocalChecked(), Nan::New<Number>(pPxl->g)); ~~~~~^~~ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^ ../src/PngImgAdapter.cc:95:10: error: no matching member function for call to 'Set' obj->Set(Nan::New<String>("b").ToLocalChecked(), Nan::New<Number>(pPxl->b)); ~~~~~^~~ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^ ../src/PngImgAdapter.cc:96:10: error: no matching member function for call to 'Set' obj->Set(Nan::New<String>("a").ToLocalChecked(), Nan::New<Number>(pPxl->a)); ~~~~~^~~ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^ ../src/PngImgAdapter.cc:104:34: error: no matching member function for call to 'Get' Nan::Utf8String val(obj->Get(Nan::New<String>(key.c_str()).ToLocalChecked())); ~~~~~^~~ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ /Users/enovikov11/Library/Caches/node-gyp/13.8.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was provided V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, ^ 5 errors generated. make: *** [Release/obj.target/png_img/src/PngImgAdapter.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:194:23) gyp ERR! stack at ChildProcess.emit (events.js:321:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Darwin 19.2.0 gyp ERR! command "/usr/local/Cellar/node/13.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/enovikov11/work/learning/node_modules/png-img gyp ERR! node -v v13.8.0 gyp ERR! node-gyp -v v5.0.7 gyp ERR! not ok npm WARN learning@1.0.0 No description npm WARN learning@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! png-img@2.3.0 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the png-img@2.3.0 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! /Users/enovikov11/.npm/_logs/2020-03-04T08_29_37_553Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/usr/local/Cellar/node/13.8.0/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'i', 1 verbose cli 'png-img' 1 verbose cli ] 2 info using npm@6.13.7 3 info using node@v13.8.0 4 verbose npm-session 03bb3608e664f738 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/png-img 1004ms (from cache) 8 http fetch GET 200 https://registry.npmjs.org/png-img/-/png-img-2.3.0.tgz 32ms (from cache) 9 silly pacote tag manifest for png-img@latest fetched in 1052ms 10 timing stage:loadCurrentTree Completed in 1178ms 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms 14 silly install loadShrinkwrap 15 timing stage:loadIdealTree:loadShrinkwrap Completed in 57ms 16 silly install loadAllDepsIntoIdealTree 17 silly resolveWithNewModule png-img@2.3.0 checking installable status 18 http fetch GET 304 https://registry.npmjs.org/nan 43ms (from cache) 19 silly pacote range manifest for nan@^2.14.0 fetched in 46ms 20 silly resolveWithNewModule nan@2.14.0 checking installable status 21 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 103ms 22 timing stage:loadIdealTree Completed in 177ms 23 silly currentTree learning@1.0.0 23 silly currentTree ├── accepts@1.3.7 23 silly currentTree ├── array-flatten@1.1.1 23 silly currentTree ├── body-parser@1.19.0 23 silly currentTree ├── bytes@3.1.0 23 silly currentTree ├── content-disposition@0.5.3 23 silly currentTree ├── content-type@1.0.4 23 silly currentTree ├── cookie-signature@1.0.6 23 silly currentTree ├── cookie@0.4.0 23 silly currentTree ├── debug@2.6.9 23 silly currentTree ├── depd@1.1.2 23 silly currentTree ├── destroy@1.0.4 23 silly currentTree ├── ee-first@1.1.1 23 silly currentTree ├── encodeurl@1.0.2 23 silly currentTree ├── escape-html@1.0.3 23 silly currentTree ├── etag@1.8.1 23 silly currentTree ├── express@4.17.1 23 silly currentTree ├── finalhandler@1.1.2 23 silly currentTree ├── forwarded@0.1.2 23 silly currentTree ├── fresh@0.5.2 23 silly currentTree ├── http-errors@1.7.2 23 silly currentTree ├── iconv-lite@0.4.24 23 silly currentTree ├── inherits@2.0.3 23 silly currentTree ├── ipaddr.js@1.9.0 23 silly currentTree ├── media-typer@0.3.0 23 silly currentTree ├── merge-descriptors@1.0.1 23 silly currentTree ├── methods@1.1.2 23 silly currentTree ├── mime-db@1.43.0 23 silly currentTree ├── mime-types@2.1.26 23 silly currentTree ├── mime@1.6.0 23 silly currentTree ├── ms@2.0.0 23 silly currentTree ├── negotiator@0.6.2 23 silly currentTree ├── on-finished@2.3.0 23 silly currentTree ├── parseurl@1.3.3 23 silly currentTree ├── path-to-regexp@0.1.7 23 silly currentTree ├── proxy-addr@2.0.5 23 silly currentTree ├── qs@6.7.0 23 silly currentTree ├── range-parser@1.2.1 23 silly currentTree ├── raw-body@2.4.0 23 silly currentTree ├── safe-buffer@5.1.2 23 silly currentTree ├── safer-buffer@2.1.2 23 silly currentTree ├─┬ send@0.17.1 23 silly currentTree │ └── ms@2.1.1 23 silly currentTree ├── serve-static@1.14.1 23 silly currentTree ├── setprototypeof@1.1.1 23 silly currentTree ├── statuses@1.5.0 23 silly currentTree ├── toidentifier@1.0.0 23 silly currentTree ├── type-is@1.6.18 23 silly currentTree ├── unpipe@1.0.0 23 silly currentTree ├── utils-merge@1.0.1 23 silly currentTree └── vary@1.1.2 24 silly idealTree learning@1.0.0 24 silly idealTree ├── accepts@1.3.7 24 silly idealTree ├── array-flatten@1.1.1 24 silly idealTree ├── body-parser@1.19.0 24 silly idealTree ├── bytes@3.1.0 24 silly idealTree ├── content-disposition@0.5.3 24 silly idealTree ├── content-type@1.0.4 24 silly idealTree ├── cookie-signature@1.0.6 24 silly idealTree ├── cookie@0.4.0 24 silly idealTree ├── debug@2.6.9 24 silly idealTree ├── depd@1.1.2 24 silly idealTree ├── destroy@1.0.4 24 silly idealTree ├── ee-first@1.1.1 24 silly idealTree ├── encodeurl@1.0.2 24 silly idealTree ├── escape-html@1.0.3 24 silly idealTree ├── etag@1.8.1 24 silly idealTree ├── express@4.17.1 24 silly idealTree ├── finalhandler@1.1.2 24 silly idealTree ├── forwarded@0.1.2 24 silly idealTree ├── fresh@0.5.2 24 silly idealTree ├── http-errors@1.7.2 24 silly idealTree ├── iconv-lite@0.4.24 24 silly idealTree ├── inherits@2.0.3 24 silly idealTree ├── ipaddr.js@1.9.0 24 silly idealTree ├── media-typer@0.3.0 24 silly idealTree ├── merge-descriptors@1.0.1 24 silly idealTree ├── methods@1.1.2 24 silly idealTree ├── mime-db@1.43.0 24 silly idealTree ├── mime-types@2.1.26 24 silly idealTree ├── mime@1.6.0 24 silly idealTree ├── ms@2.0.0 24 silly idealTree ├── nan@2.14.0 24 silly idealTree ├── negotiator@0.6.2 24 silly idealTree ├── on-finished@2.3.0 24 silly idealTree ├── parseurl@1.3.3 24 silly idealTree ├── path-to-regexp@0.1.7 24 silly idealTree ├── png-img@2.3.0 24 silly idealTree ├── proxy-addr@2.0.5 24 silly idealTree ├── qs@6.7.0 24 silly idealTree ├── range-parser@1.2.1 24 silly idealTree ├── raw-body@2.4.0 24 silly idealTree ├── safe-buffer@5.1.2 24 silly idealTree ├── safer-buffer@2.1.2 24 silly idealTree ├─┬ send@0.17.1 24 silly idealTree │ └── ms@2.1.1 24 silly idealTree ├── serve-static@1.14.1 24 silly idealTree ├── setprototypeof@1.1.1 24 silly idealTree ├── statuses@1.5.0 24 silly idealTree ├── toidentifier@1.0.0 24 silly idealTree ├── type-is@1.6.18 24 silly idealTree ├── unpipe@1.0.0 24 silly idealTree ├── utils-merge@1.0.1 24 silly idealTree └── vary@1.1.2 25 silly install generateActionsToTake 26 timing stage:generateActionsToTake Completed in 7ms 27 silly diffTrees action count 2 28 silly diffTrees add nan@2.14.0 29 silly diffTrees add png-img@2.3.0 30 silly decomposeActions action count 16 31 silly decomposeActions fetch nan@2.14.0 32 silly decomposeActions extract nan@2.14.0 33 silly decomposeActions preinstall nan@2.14.0 34 silly decomposeActions build nan@2.14.0 35 silly decomposeActions install nan@2.14.0 36 silly decomposeActions postinstall nan@2.14.0 37 silly decomposeActions finalize nan@2.14.0 38 silly decomposeActions refresh-package-json nan@2.14.0 39 silly decomposeActions fetch png-img@2.3.0 40 silly decomposeActions extract png-img@2.3.0 41 silly decomposeActions preinstall png-img@2.3.0 42 silly decomposeActions build png-img@2.3.0 43 silly decomposeActions install png-img@2.3.0 44 silly decomposeActions postinstall png-img@2.3.0 45 silly decomposeActions finalize png-img@2.3.0 46 silly decomposeActions refresh-package-json png-img@2.3.0 47 silly install executeActions 48 silly doSerial global-install 16 49 verbose correctMkdir /Users/enovikov11/.npm/_locks correctMkdir not in flight; initializing 50 verbose lock using /Users/enovikov11/.npm/_locks/staging-4526221ac966544c.lock for /Users/enovikov11/work/learning/node_modules/.staging 51 silly doParallel extract 2 52 silly extract nan@2.14.0 53 silly extract png-img@2.3.0 54 silly tarball trying nan@^2.14.0 by hash: sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== 55 silly tarball trying png-img@latest by hash: sha512-niTERtbYrszcFHdUbsM0JnKMvCUnT/5AJfozWKf8jKYf4gRoyF+xTMhgOKcM3H9rdZX9G8K+MJjPLeM90u/92w== 56 silly extract nan@^2.14.0 extracted to /Users/enovikov11/work/learning/node_modules/.staging/nan-ddefdf54 (39ms) 57 silly extract png-img@latest extracted to /Users/enovikov11/work/learning/node_modules/.staging/png-img-8a7f3171 (69ms) 58 timing action:extract Completed in 71ms 59 silly doReverseSerial unbuild 16 60 silly doSerial remove 16 61 silly doSerial move 16 62 silly doSerial finalize 16 63 silly finalize /Users/enovikov11/work/learning/node_modules/nan 64 silly finalize /Users/enovikov11/work/learning/node_modules/png-img 65 timing action:finalize Completed in 4ms 66 silly doParallel refresh-package-json 2 67 silly refresh-package-json /Users/enovikov11/work/learning/node_modules/nan 68 silly refresh-package-json /Users/enovikov11/work/learning/node_modules/png-img 69 timing action:refresh-package-json Completed in 5ms 70 silly doParallel preinstall 2 71 silly preinstall nan@2.14.0 72 info lifecycle nan@2.14.0~preinstall: nan@2.14.0 73 silly preinstall png-img@2.3.0 74 info lifecycle png-img@2.3.0~preinstall: png-img@2.3.0 75 timing action:preinstall Completed in 1ms 76 silly doSerial build 16 77 silly build nan@2.14.0 78 info linkStuff nan@2.14.0 79 silly linkStuff nan@2.14.0 has /Users/enovikov11/work/learning/node_modules as its parent node_modules 80 silly build png-img@2.3.0 81 info linkStuff png-img@2.3.0 82 silly linkStuff png-img@2.3.0 has /Users/enovikov11/work/learning/node_modules as its parent node_modules 83 timing action:build Completed in 1ms 84 silly doSerial global-link 16 85 silly doParallel update-linked 0 86 silly doSerial install 16 87 silly install nan@2.14.0 88 info lifecycle nan@2.14.0~install: nan@2.14.0 89 silly install png-img@2.3.0 90 info lifecycle png-img@2.3.0~install: png-img@2.3.0 91 verbose lifecycle png-img@2.3.0~install: unsafe-perm in lifecycle true 92 verbose lifecycle png-img@2.3.0~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/enovikov11/work/learning/node_modules/png-img/node_modules/.bin:/Users/enovikov11/work/learning/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki 93 verbose lifecycle png-img@2.3.0~install: CWD: /Users/enovikov11/work/learning/node_modules/png-img 94 silly lifecycle png-img@2.3.0~install: Args: [ '-c', 'node-gyp rebuild' ] 95 timing audit submit Completed in 282ms 96 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 282ms 97 timing audit body Completed in 1ms 98 silly lifecycle png-img@2.3.0~install: Returned: code: 1 signal: null 99 info lifecycle png-img@2.3.0~install: Failed to exec install script 100 timing action:install Completed in 10892ms 101 verbose unlock done using /Users/enovikov11/.npm/_locks/staging-4526221ac966544c.lock for /Users/enovikov11/work/learning/node_modules/.staging 102 timing stage:rollbackFailedOptional Completed in 34ms 103 timing stage:runTopLevelLifecycles Completed in 12399ms 104 silly saveTree learning@1.0.0 104 silly saveTree ├─┬ express@4.17.1 104 silly saveTree │ ├─┬ accepts@1.3.7 104 silly saveTree │ │ ├─┬ mime-types@2.1.26 104 silly saveTree │ │ │ └── mime-db@1.43.0 104 silly saveTree │ │ └── negotiator@0.6.2 104 silly saveTree │ ├── array-flatten@1.1.1 104 silly saveTree │ ├─┬ body-parser@1.19.0 104 silly saveTree │ │ ├── bytes@3.1.0 104 silly saveTree │ │ ├── content-type@1.0.4 104 silly saveTree │ │ ├─┬ debug@2.6.9 104 silly saveTree │ │ │ └── ms@2.0.0 104 silly saveTree │ │ ├── depd@1.1.2 104 silly saveTree │ │ ├─┬ http-errors@1.7.2 104 silly saveTree │ │ │ ├── inherits@2.0.3 104 silly saveTree │ │ │ ├── setprototypeof@1.1.1 104 silly saveTree │ │ │ ├── statuses@1.5.0 104 silly saveTree │ │ │ └── toidentifier@1.0.0 104 silly saveTree │ │ ├─┬ iconv-lite@0.4.24 104 silly saveTree │ │ │ └── safer-buffer@2.1.2 104 silly saveTree │ │ ├─┬ on-finished@2.3.0 104 silly saveTree │ │ │ └── ee-first@1.1.1 104 silly saveTree │ │ ├── qs@6.7.0 104 silly saveTree │ │ ├─┬ raw-body@2.4.0 104 silly saveTree │ │ │ └── unpipe@1.0.0 104 silly saveTree │ │ └─┬ type-is@1.6.18 104 silly saveTree │ │ └── media-typer@0.3.0 104 silly saveTree │ ├─┬ content-disposition@0.5.3 104 silly saveTree │ │ └── safe-buffer@5.1.2 104 silly saveTree │ ├── content-type@1.0.4 104 silly saveTree │ ├── cookie-signature@1.0.6 104 silly saveTree │ ├── cookie@0.4.0 104 silly saveTree │ ├── debug@2.6.9 104 silly saveTree │ ├── depd@1.1.2 104 silly saveTree │ ├── encodeurl@1.0.2 104 silly saveTree │ ├── escape-html@1.0.3 104 silly saveTree │ ├── etag@1.8.1 104 silly saveTree │ ├─┬ finalhandler@1.1.2 104 silly saveTree │ │ └── parseurl@1.3.3 104 silly saveTree │ ├── fresh@0.5.2 104 silly saveTree │ ├── merge-descriptors@1.0.1 104 silly saveTree │ ├── methods@1.1.2 104 silly saveTree │ ├── on-finished@2.3.0 104 silly saveTree │ ├── parseurl@1.3.3 104 silly saveTree │ ├── path-to-regexp@0.1.7 104 silly saveTree │ ├─┬ proxy-addr@2.0.5 104 silly saveTree │ │ ├── forwarded@0.1.2 104 silly saveTree │ │ └── ipaddr.js@1.9.0 104 silly saveTree │ ├── qs@6.7.0 104 silly saveTree │ ├── range-parser@1.2.1 104 silly saveTree │ ├── safe-buffer@5.1.2 104 silly saveTree │ ├─┬ send@0.17.1 104 silly saveTree │ │ ├── destroy@1.0.4 104 silly saveTree │ │ ├── mime@1.6.0 104 silly saveTree │ │ └── ms@2.1.1 104 silly saveTree │ ├── serve-static@1.14.1 104 silly saveTree │ ├── setprototypeof@1.1.1 104 silly saveTree │ ├── statuses@1.5.0 104 silly saveTree │ ├── type-is@1.6.18 104 silly saveTree │ ├── utils-merge@1.0.1 104 silly saveTree │ └── vary@1.1.2 104 silly saveTree └─┬ png-img@2.3.0 104 silly saveTree └── nan@2.14.0 105 warn learning@1.0.0 No description 106 warn learning@1.0.0 No repository field. 107 verbose stack Error: png-img@2.3.0 install: `node-gyp rebuild` 107 verbose stack Exit status 1 107 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 107 verbose stack at EventEmitter.emit (events.js:321:20) 107 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 107 verbose stack at ChildProcess.emit (events.js:321:20) 107 verbose stack at maybeClose (internal/child_process.js:1026:16) 107 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 108 verbose pkgid png-img@2.3.0 109 verbose cwd /Users/enovikov11/work/learning 110 verbose Darwin 19.2.0 111 verbose argv "/usr/local/Cellar/node/13.8.0/bin/node" "/usr/local/bin/npm" "i" "png-img" 112 verbose node v13.8.0 113 verbose npm v6.13.7 114 error code ELIFECYCLE 115 error errno 1 116 error png-img@2.3.0 install: `node-gyp rebuild` 116 error Exit status 1 117 error Failed at the png-img@2.3.0 install script. 117 error This is probably not a problem with npm. There is likely additional logging output above. 118 verbose exit [ 1, true ]
Судя по логам используется node@13. png-img пока не адаптировали под 13, используйте node@12
Есть ли планы по переходу на node@13 с какими-то сроками? Спасибо.
Сейчас поддерживаются версии до 16 включительно
npm init npm i png-img
CC(target) Release/obj.target/libpng/third_party/libpng/png.o CC(target) Release/obj.target/libpng/third_party/libpng/pngerror.o CC(target) Release/obj.target/libpng/third_party/libpng/pngget.o CC(target) Release/obj.target/libpng/third_party/libpng/pngmem.o CC(target) Release/obj.target/libpng/third_party/libpng/pngpread.o CC(target) Release/obj.target/libpng/third_party/libpng/pngread.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrio.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrtran.o CC(target) Release/obj.target/libpng/third_party/libpng/pngrutil.o CC(target) Release/obj.target/libpng/third_party/libpng/pngset.o CC(target) Release/obj.target/libpng/third_party/libpng/pngtest.o CC(target) Release/obj.target/libpng/third_party/libpng/pngtrans.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwio.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwrite.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwtran.o CC(target) Release/obj.target/libpng/third_party/libpng/pngwutil.o LIBTOOL-STATIC Release/png.a CC(target) Release/obj.target/zlib/third_party/zlib/adler32.o CC(target) Release/obj.target/zlib/third_party/zlib/compress.o CC(target) Release/obj.target/zlib/third_party/zlib/crc32.o CC(target) Release/obj.target/zlib/third_party/zlib/deflate.o CC(target) Release/obj.target/zlib/third_party/zlib/gzclose.o CC(target) Release/obj.target/zlib/third_party/zlib/gzlib.o CC(target) Release/obj.target/zlib/third_party/zlib/gzread.o CC(target) Release/obj.target/zlib/third_party/zlib/gzwrite.o CC(target) Release/obj.target/zlib/third_party/zlib/infback.o CC(target) Release/obj.target/zlib/third_party/zlib/inffast.o CC(target) Release/obj.target/zlib/third_party/zlib/inflate.o ../third_party/zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;