HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.18k stars 4.3k forks source link

Hashlips won't load Truffle #1198

Open blscrypto opened 2 years ago

blscrypto commented 2 years ago

Hello, Working on an NFT smart contract. When I run npm i -g truffle in the hashlips terminal, it works for a long time, then finally fails with the error below. Any help? Thanks!!

npm ERR! code 1 npm ERR! path /Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/@trufflesuite/bigint-buffer npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@18.2.0 | darwin | x64 npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - executable path is "/usr/bin/python" npm ERR! gyp ERR! find Python - version is "2.7.16" npm ERR! gyp ERR! find Python - version is 2.7.16 - should be >=3.6.0 npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47) npm ERR! gyp ERR! stack at PythonFinder.runChecks (/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21) npm ERR! gyp ERR! stack at PythonFinder. (/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16) npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7) npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:379:7) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1090:16) npm ERR! gyp ERR! stack at Socket. (node:internal/child_process:449:11) npm ERR! gyp ERR! stack at Socket.emit (node:events:527:28) npm ERR! gyp ERR! stack at Pipe. (node:net:715:12) npm ERR! gyp ERR! System Darwin 18.7.0 npm ERR! gyp ERR! command "/Users/administrator/.nvm/versions/node/v18.2.0/bin/node" "/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/@trufflesuite/bigint-buffer npm ERR! gyp ERR! node -v v18.2.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok

bolshoytoster commented 2 years ago

@blscrypto Did you read the error?

npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
blscrypto commented 2 years ago

I thought I did, but apparently not! Will do as told. thanks.

blscrypto commented 2 years ago

So I installed Python and tried npm i -g truffle again. Results were a much longer string of errors, copied below:

npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated ipld-raw@6.0.0: This module has been superseded by the multiformats module npm WARN deprecated cids@1.1.9: This module has been superseded by the multiformats module npm WARN deprecated uuid@2.0.1: 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. npm WARN deprecated @nodefactory/filsnap-adapter@0.2.2: Package is deprecated in favour of @chainsafe/filsnap-adapter npm WARN deprecated ipld-dag-cbor@0.17.1: This module has been superseded by @ipld/dag-cbor and multiformats npm WARN deprecated multicodec@1.0.4: This module has been superseded by the multiformats module npm WARN deprecated uuid@3.4.0: 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. npm WARN deprecated uuid@3.2.1: 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. npm WARN deprecated uuid@3.2.1: 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. npm WARN deprecated multibase@4.0.6: This module has been superseded by the multiformats module npm WARN deprecated multibase@4.0.6: This module has been superseded by the multiformats module npm WARN deprecated multibase@4.0.6: This module has been superseded by the multiformats module npm WARN deprecated multibase@3.1.2: This module has been superseded by the multiformats module npm WARN deprecated uuid@3.3.2: 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. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated ipld-dag-pb@0.20.0: This module has been superseded by @ipld/dag-pb and multiformats npm WARN deprecated multibase@0.7.0: This module has been superseded by the multiformats module npm WARN deprecated multibase@0.6.1: This module has been superseded by the multiformats module npm WARN deprecated multicodec@0.5.7: This module has been superseded by the multiformats module npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future npm WARN deprecated multicodec@3.2.1: This module has been superseded by the multiformats module npm WARN deprecated multicodec@2.1.3: This module has been superseded by the multiformats module npm WARN deprecated multicodec@2.1.3: This module has been superseded by the multiformats module npm WARN deprecated multicodec@2.1.3: This module has been superseded by the multiformats module npm WARN deprecated cids@0.7.5: This module has been superseded by the multiformats module npm ERR! code 1 npm ERR! path /Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@18.2.0 | darwin | x64 npm ERR! gyp info find Python using Python version 3.9.13 found at "/usr/local/bin/python3" npm ERR! gyp http GET https://nodejs.org/download/release/v18.2.0/node-v18.2.0-headers.tar.gz npm ERR! gyp http 200 https://nodejs.org/download/release/v18.2.0/node-v18.2.0-headers.tar.gz npm ERR! gyp http GET https://nodejs.org/download/release/v18.2.0/SHASUMS256.txt npm ERR! gyp http 200 https://nodejs.org/download/release/v18.2.0/SHASUMS256.txt npm ERR! gyp info spawn /usr/local/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/administrator/Library/Caches/node-gyp/18.2.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/administrator/Library/Caches/node-gyp/18.2.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/administrator/Library/Caches/node-gyp/18.2.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:32: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:784:2: error: Unsupported architecture npm ERR! #error Unsupported architecture npm ERR! ^ npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:33: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported npm ERR! #error architecture not supported npm ERR! ^ npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean 'int128_t'? npm ERR! typedef int64_t darwin_blkcnt_t; / total blocks / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean 'int128_t'? npm ERR! typedef int32_t darwin_blksize_t; / preferred block size / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean 'int128_t'? npm ERR! typedef int32_t __darwin_dev_t; / dev_t / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:60:9: error: unknown type name 'uint32_t'; did you mean '__uint128_t'? npm ERR! typedef uint32_t darwin_gid_t; / [???] process and group IDs / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:61:9: error: unknown type name 'uint32_t'; did you mean '__uint128_t'? npm ERR! typedef uint32_t darwin_id_t; / [XSI] pid_t, uid_t, or gid_t/ npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:62:9: error: unknown type name 'uint64_t'; did you mean 'uint128_t'? npm ERR! typedef uint64_t darwin_ino64_t; / [???] Used for 64 bit inodes / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:68:9: error: unknown type name 'darwin_natural_t' npm ERR! typedef darwin_natural_t __darwin_mach_port_name_t; / Used by mach / npm ERR! ^ npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:70:9: error: unknown type name 'uint16_t'; did you mean 'uint128_t'? npm ERR! typedef __uint16_t darwin_mode_t; / [???] Some file attributes / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:71:9: error: unknown type name 'int64_t'; did you mean 'int128_t'? npm ERR! typedef __int64_t darwin_off_t; / [???] Used for file sizes / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:72:9: error: unknown type name 'int32_t'; did you mean 'int128_t'? npm ERR! typedef __int32_t darwin_pid_t; / [???] process and group IDs / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:73:9: error: unknown type name 'uint32_t'; did you mean 'uint128_t'? npm ERR! typedef __uint32_t darwin_sigset_t; / [???] signal set / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:74:9: error: unknown type name 'int32_t'; did you mean 'int128_t'? npm ERR! typedef __int32_t darwin_suseconds_t; / [???] microseconds / npm ERR! ^ npm ERR! note: 'int128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:75:9: error: unknown type name 'uint32_t'; did you mean 'uint128_t'? npm ERR! typedef __uint32_t darwin_uid_t; / [???] user IDs / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:76:9: error: unknown type name 'uint32_t'; did you mean 'uint128_t'? npm ERR! typedef __uint32_t darwin_useconds_t; / [???] microseconds / npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:43:9: error: unknown type name 'uint32_t'; did you mean '__uint128_t'? npm ERR! typedef uint32_t darwin_wctype_t; npm ERR! ^ npm ERR! note: 'uint128_t' declared here npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:141: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_rsize_t.h:30: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/types.h:37:2: error: architecture not supported npm ERR! #error architecture not supported npm ERR! ^ npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8: npm ERR! In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:500: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:56: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:642: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h:61: npm ERR! In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:141: npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_rsize_t.h:31:9: error: unknown type name 'darwin_size_t' npm ERR! typedef darwin_size_t rsize_t; npm ERR! ^ npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=] npm ERR! 20 errors generated. npm ERR! make: *** [Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 18.7.0 npm ERR! gyp ERR! command "/Users/administrator/.nvm/versions/node/v18.2.0/bin/node" "/Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/administrator/.nvm/versions/node/v18.2.0/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown npm ERR! gyp ERR! node -v v18.2.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /Users/administrator/.npm/_logs/2022-05-22T19_29_01_962Z-debug-0.log Bruce-Stubblefield-Mac-Pro:nft-erc721-collection-2.0.0 administrator$

bolshoytoster commented 2 years ago

@blscrypto as said on this issue, you might have to downgrade node/npm:

Having exactly the same error, had to downgrade npm to make it work. Here some tests: ❌ node v14.18.1 (npm v8.5.1) ❌ node v10.15.3 (npm v7.5.4) ✅ node v11.1.0 (npm v6.5.0)

blscrypto commented 2 years ago

To downgrade nom I tried running npm install -g npm@v8.5.1 and got the below. I'm not sure what it means.

Bruce-Stubblefield-Mac-Pro:nft-erc721-collection-2.0.0 administrator$ npm install -g npm@v8.5.1 npm WARN npm npm does not support Node.js v18.2.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12. npm WARN npm You can find the latest version at https://nodejs.org/ npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in: npm ERR! /Users/administrator/.npm/_logs/2022-05-22T20_00_02_647Z-debug.log Bruce-Stubblefield-Mac-Pro:nft-erc721-collection-2.0.0 administrator$

blscrypto commented 2 years ago

I also tried the current version of Node (18.2.0), replacing what I had been using "recommended for most users" 16.15.0, but got the same error message as above

bolshoytoster commented 2 years ago

@blscrypto yeah, the comment suggests using node v11.1.0 with npm v6.5.0.

blscrypto commented 2 years ago

I downloaded Node 11.1.0 and ran the installer, said it worked. To downgrade to npm 6.5.0 I ran npm install -g npm@v6.5.0. Doing that gave me this error:

Bruce-Stubblefield-Mac-Pro:nft-erc721-collection-2.0.0 administrator$ npm install -g npm@v6.5.0 npm WARN npm npm does not support Node.js v18.2.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12. npm WARN npm You can find the latest version at https://nodejs.org/ npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in: npm ERR! /Users/administrator/.npm/_logs/2022-05-22T23_15_46_652Z-debug.log Bruce-Stubblefield-Mac-Pro:nft-erc721-collection-2.0.0 administrator$

bolshoytoster commented 2 years ago

@blscrypto I'm not sure you're running node 11.1.0, you can run node -v to check.

You should try deleting node before installing a different version or use nvm.