{"id":2251,"date":"2022-05-07T08:32:20","date_gmt":"2022-05-06T23:32:20","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=2251"},"modified":"2022-05-07T09:32:29","modified_gmt":"2022-05-07T00:32:29","slug":"cant-uninstall-ganache","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=2251","title":{"rendered":"<small>Can&#8217;t uninstall ganache<\/small>"},"content":{"rendered":"<p>\uff11\uff0e\u7d4c\u7def<br \/>\n\u30fbganache\u3092global install\u3057\u3066\u8d77\u52d5\u3055\u305b\u308b\u3068\u3001\u4ee5\u4e0b\u306eerror\u304c\u3067\u308b<br \/>\n-bash: \/usr\/local\/bin\/ganache: Permission denied<\/p>\n<p>\uff12\uff0e\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u624b\u52d5\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044<br \/>\n<a href=\"https:\/\/docs.npmjs.com\/resolving-eacces-permissions-errors-when-installing-packages-globally\">https:\/\/docs.npmjs.com\/resolving-eacces-permissions-errors-when-installing-packages-globally<\/a><\/p>\n<p>\uff13\uff0eganache\u3092uninstall, remove, unlink\u3057\u3066\u3082\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u6b8b\u3063\u305f\u307e\u307e<br \/>\nlrwxrwxrwx 1 root root 44 May  1 12:33 \/usr\/local\/bin\/ganache -> ..\/lib\/node_modules\/ganache\/dist\/node\/cli.js<\/p>\n<p>\uff14\uff0erebuild\u3092\u3084\u3063\u3066\u307f\u308b<br \/>\n# npm rebuild<br \/>\nrebuilt dependencies successfully<\/p>\n<p>\uff15\uff0eganache\u3092\u518d\u5ea6uninstall, remove, unlink\u3057\u3066\u3082\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u6b8b\u3063\u305f\u307e\u307e<br \/>\nlrwxrwxrwx 1 root root 44 May  1 12:33 \/usr\/local\/bin\/ganache -> ..\/lib\/node_modules\/ganache\/dist\/node\/cli.js<\/p>\n<p>\uff16\uff0enodejs\u3068npm\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3084\u308a\u305f\u304f\u306a\u3044\u306e\u3067<br \/>\n\u30fbganache\u3092global\u306a\u3057\u3066install<\/p>\n<p>\uff17\uff0epath\u3092\u76f4\u63a5\u6307\u5b9a\u3057\u3066\u3001\u8d77\u52d5<\/p>\n<pre>\r\n# \/opt\/PrivateInvoice\/294\/node_modules\/.bin\/ganache -d --db \/opt\/ganache\/db\r\nganache v7.1.0 (@ganache\/cli: 0.2.0, @ganache\/core: 0.2.0)\r\nStarting RPC server\r\n\r\nAvailable Accounts\r\n==================\r\n(0) 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1 (1000 ETH)\r\n(1) 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0 (1000 ETH)\r\n(2) 0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b (1000 ETH)\r\n(3) 0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d (1000 ETH)\r\n(4) 0xd03ea8624C8C5987235048901fB614fDcA89b117 (1000 ETH)\r\n(5) 0x95cED938F7991cd0dFcb48F0a06a40FA1aF46EBC (1000 ETH)\r\n(6) 0x3E5e9111Ae8eB78Fe1CC3bb8915d5D461F3Ef9A9 (1000 ETH)\r\n(7) 0x28a8746e75304c0780E011BEd21C72cD78cd535E (1000 ETH)\r\n(8) 0xACa94ef8bD5ffEE41947b4585a84BdA5a3d3DA6E (1000 ETH)\r\n(9) 0x1dF62f291b2E969fB0849d99D9Ce41e2F137006e (1000 ETH)\r\n\r\nPrivate Keys\r\n==================\r\n(0) 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d\r\n(1) 0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1\r\n(2) 0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c\r\n(3) 0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913\r\n(4) 0xadd53f9a7e588d003326d1cbf9e4a43c061aadd9bc938c843a79e7b4fd2ad743\r\n(5) 0x395df67f0c2d2d9fe1ad08d1bc8b6627011959b79c53d7dd6a3536a33ab8a4fd\r\n(6) 0xe485d098507f54e7733a205420dfddbe58db035fa577fc294ebd14db90767a52\r\n(7) 0xa453611d9419d0e56f499079478fd72c37b251a94bfde4d19872c44cf65386e3\r\n(8) 0x829e924fdf021ba3dbbc4225edfece9aca04b929d6e75613329ca6f1d31c0bb4\r\n(9) 0xb0057716d5917badaf911b193b12b910811c1497b5bada8d7711f758981c3773\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0e\u7d4c\u7def \u30fbganache\u3092global install\u3057\u3066\u8d77\u52d5\u3055\u305b\u308b\u3068\u3001\u4ee5\u4e0b\u306eerror\u304c\u3067\u308b -bash: \/usr\/local\/bin\/ganache: Permission denied \uff12\uff0e\u4ee5\u4e0b\u3092\u53c2\u7167\u3057\u3066\u624b\u52d5\u3067&#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\/2251"}],"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=2251"}],"version-history":[{"count":7,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2251\/revisions"}],"predecessor-version":[{"id":2258,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2251\/revisions\/2258"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}