{"id":2156,"date":"2022-05-01T17:30:23","date_gmt":"2022-05-01T08:30:23","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=2156"},"modified":"2022-05-26T10:26:38","modified_gmt":"2022-05-26T01:26:38","slug":"ganache-innstall-error","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=2156","title":{"rendered":"<small>CenOS stream 9: ganache install error<\/small>"},"content":{"rendered":"<p>\uff11\uff0eganache install error <\/p>\n<pre>\r\n# npm install ganache\r\nnpm ERR! code 1\r\nnpm ERR! path \/opt\/PrivateInvoice\/260\/node_modules\/ganache\/node_modules\/@trufflesuite\/bigint-buffer\r\nnpm ERR! command failed\r\nnpm ERR! command sh -c node-gyp rebuild\r\nnpm ERR! gyp info it worked if it ends with ok\r\nnpm ERR! gyp info using node-gyp@9.0.0\r\nnpm ERR! gyp info using node@17.8.0 | linux | x64\r\nnpm ERR! gyp info find Python using Python version 3.9.10 found at \"\/usr\/bin\/python3\"\r\nnpm ERR! gyp info spawn \/usr\/bin\/python3\r\nnpm ERR! gyp info spawn args [\r\nnpm ERR! gyp info spawn args   '\/usr\/local\/lib\/node_modules\/npm\/node_modules\/node-gyp\/gyp\/gyp_main.py',\r\nnpm ERR! gyp info spawn args   'binding.gyp',\r\nnpm ERR! gyp info spawn args   '-f',\r\nnpm ERR! gyp info spawn args   'make',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '\/opt\/PrivateInvoice\/260\/node_modules\/ganache\/node_modules\/@trufflesuite\/bigint-buffer\/build\/config.gypi',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '\/usr\/local\/lib\/node_modules\/npm\/node_modules\/node-gyp\/addon.gypi',\r\nnpm ERR! gyp info spawn args   '-I',\r\nnpm ERR! gyp info spawn args   '\/root\/.cache\/node-gyp\/17.8.0\/include\/node\/common.gypi',\r\nnpm ERR! gyp info spawn args   '-Dlibrary=shared_library',\r\nnpm ERR! gyp info spawn args   '-Dvisibility=default',\r\nnpm ERR! gyp info spawn args   '-Dnode_root_dir=\/root\/.cache\/node-gyp\/17.8.0',\r\nnpm ERR! gyp info spawn args   '-Dnode_gyp_dir=\/usr\/local\/lib\/node_modules\/npm\/node_modules\/node-gyp',\r\nnpm ERR! gyp info spawn args   '-Dnode_lib_file=\/root\/.cache\/node-gyp\/17.8.0\/<(target_arch)\/node.lib',\r\nnpm ERR! gyp info spawn args   '-Dmodule_root_dir=\/opt\/PrivateInvoice\/260\/node_modules\/ganache\/node_modules\/@trufflesuite\/bigint-buffer',\r\nnpm ERR! gyp info spawn args   '-Dnode_engine=v8',\r\nnpm ERR! gyp info spawn args   '--depth=.',\r\nnpm ERR! gyp info spawn args   '--no-parallel',\r\nnpm ERR! gyp info spawn args   '--generator-output',\r\nnpm ERR! gyp info spawn args   'build',\r\nnpm ERR! gyp info spawn args   '-Goutput_dir=.'\r\nnpm ERR! gyp info spawn args ]\r\nnpm ERR! gyp ERR! build error\r\nnpm ERR! gyp ERR! stack Error: not found: make\r\nnpm ERR! gyp ERR! stack     at getNotFoundError (\/usr\/local\/lib\/node_modules\/npm\/node_modules\/which\/which.js:10:17)\r\n<\/pre>\n<p>\uff12\uff0eCause<br \/>\nI can't make ganache. By the way, the development environment is not installed.<\/p>\n<p>\uff13\uff0einstall make, gcc, g++<\/p>\n<pre>\r\n# dnf install make gcc g++\r\n<\/pre>\n<p>\uff14\uff0einstall ganache<\/p>\n<pre>\r\n# npm cache clean\r\n# npm install ganache\r\n\r\nadded 27 packages, changed 2 packages, and audited 456 packages in 2m\r\n\r\n57 packages are looking for funding\r\n  run `npm fund` for details\r\n\r\n4 vulnerabilities (3 high, 1 critical)\r\n\r\nTo address all issues, run:\r\n  npm audit fix\r\n\r\nRun `npm audit` for details.\r\n#\r\n<\/pre>\n<p>\uff15\uff0enpm audit fix<\/p>\n<pre>\r\n# npm audit fix\r\n\r\nadded 4 packages, changed 5 packages, and audited 460 packages in 8s\r\n\r\n57 packages are looking for funding\r\n  run `npm fund` for details\r\n\r\nfound 0 vulnerabilities\r\n# npm fund\r\nprivateinvoice@1.0.0\r\ntqq https:\/\/opencollective.com\/node-redis\r\nx   mqq redis@3.1.2\r\ntqw https:\/\/opencollective.com\/eslint\r\nx x mqq eslint@8.13.0\r\nx tqq https:\/\/github.com\/sponsors\/epoberezkin\r\nx x   mqq ajv@6.12.6\r\nx tqw https:\/\/github.com\/chalk\/chalk?sponsor=1\r\nx x x mqq chalk@4.1.2\r\nx x mqq https:\/\/github.com\/chalk\/ansi-styles?sponsor=1\r\nx x     mqq ansi-styles@4.3.0\r\nx tqq https:\/\/github.com\/sponsors\/sindresorhus\r\nx x   mqq escape-string-regexp@4.0.0, globals@13.13.0, type-fest@0.20.2, import-fresh@3.3.0, strip-json-comments@3.1.1, make-dir@3.1.0, p-map@4.0.0\r\nx mqq https:\/\/github.com\/sponsors\/mysticatea\r\nx     mqq eslint-utils@3.0.0, regexpp@3.2.0\r\ntqq https:\/\/github.com\/sponsors\/RubenVerborgh\r\nx   mqq follow-redirects@1.14.9\r\ntqq https:\/\/github.com\/sponsors\/isaacs\r\nx   mqq rimraf@3.0.2, glob@7.1.7, glob@8.0.1\r\ntqq https:\/\/github.com\/sponsors\/feross\r\nx   mqq safe-buffer@5.2.1\r\nmqq https:\/\/github.com\/sponsors\/ljharb\r\n    mqq array-includes@3.1.4, call-bind@1.0.2, define-properties@1.1.4, has-property-descriptors@1.0.0, es-abstract@1.19.5, es-to-primitive@1.2.1, is-date-object@1.0.5, has-tostringtag@1.0.0, is-symbol@1.0.4, get-symbol-description@1.0.0, has-symbols@1.0.3, is-callable@1.2.4, is-negative-zero@2.0.2, is-regex@1.1.4, is-shared-array-buffer@1.0.2, is-weakref@1.0.2, object-inspect@1.12.0, object.assign@4.1.2, string.prototype.trimend@1.0.4, string.prototype.trimstart@1.0.4, unbox-primitive@1.0.1, has-bigints@1.0.2, which-boxed-primitive@1.0.2, is-bigint@1.0.4, is-boolean-object@1.1.2, is-number-object@1.0.7, side-channel@1.0.4, get-intrinsic@1.1.1, is-string@1.0.7, array.prototype.flatmap@1.3.0, object.fromentries@2.0.5, object.hasown@1.1.0, object.values@1.1.5, resolve@2.0.0-next.3, is-core-module@2.9.0, string.prototype.matchall@4.0.7, regexp.prototype.flags@1.4.3, functions-have-names@1.2.3\r\n\r\n#\r\n# npm ls\r\nprivateinvoice@1.0.0 \/opt\/PrivateInvoice\/260\r\ntqq axios@0.26.1\r\ntqq bcrypt@5.0.1\r\ntqq binary-uuid@2.0.3\r\ntqq bip39@3.0.4\r\ntqq body-parser@1.19.0\r\ntqq connect-redis@4.0.4\r\ntqq currency.js@1.2.2\r\ntqq dotenv-cli@5.1.0\r\ntqq dotenv@16.0.0\r\ntqq eslint-plugin-react@7.29.4\r\ntqq eslint@8.13.0\r\ntqq express-session@1.17.2\r\ntqq express@4.17.1\r\ntqq finalhandler@1.1.2\r\ntqq ganache@7.1.0\r\ntqq moment@2.29.3\r\ntqq mysql@2.18.1\r\ntqq node-gyp@9.0.0\r\ntqq redis@3.1.2\r\ntqq serve-static@1.14.1\r\ntqq session-file-store@1.5.0\r\ntqq sqlite3@4.2.0\r\ntqq tslib@2.2.0\r\ntqq uniqid@5.3.0\r\nmqq uuid@7.0.3\r\n\r\n#\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0eganache install error # npm install ganache npm ERR! code 1 npm ERR! path \/opt\/PrivateInvoice\/260\/node_modul&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2156"}],"collection":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2156"}],"version-history":[{"count":11,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2156\/revisions"}],"predecessor-version":[{"id":2591,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2156\/revisions\/2591"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}