{"id":2350,"date":"2022-05-12T19:33:39","date_gmt":"2022-05-12T10:33:39","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=2350"},"modified":"2022-05-12T19:44:55","modified_gmt":"2022-05-12T10:44:55","slug":"nodejs-npm-install-ethereumjs-common","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=2350","title":{"rendered":"<small>nodejs: npm install ethereumjs-common<\/small>"},"content":{"rendered":"<p>\uff11\uff0enpm install ethereumjs-common<\/p>\n<pre>\r\n# npm install ethereumjs-common\r\n\r\nup to date, audited 719 packages in 6s\r\n\r\n89 packages are looking for funding\r\n  run `npm fund` for details\r\n\r\nfound 0 vulnerabilities\r\n[root@localhost 316s]# npm ls\r\nprivateinvoice@0.0.1 \/opt\/PrivateInvoice\/316s\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.15.0\r\ntqq ethereumjs-common@1.5.2\r\ntqq ethereumjs-tx@2.1.2\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 got@12.0.4\r\ntqq ipfs-http-client@56.0.3\r\ntqq moment@2.29.3\r\ntqq mysql@2.18.1\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\ntqq uuid@7.0.3\r\nmqq web3@1.7.3\r\n\r\n#\r\n<\/pre>\n<p>\uff12\uff0e\u5b9f\u884c\u7d50\u679c<br \/>\n\u30fbforCustomChain\u306f\u7121\u3044<br \/>\n\u4ee3\u308f\u308a\u306b\u3001npm remove ethereumjs-common\u3092\u4f7f\u3046<\/p>\n<pre>\r\n\/opt\/PrivateInvoice\/316s\/routes\/buyer_invoice.js:640\r\n        const customCommon = Common.forCustomChain({\r\n                                    ^\r\n\r\nTypeError: Common.forCustomChain is not a function\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0enpm install ethereumjs-common # npm install ethereumjs-common up to date, audited 719 packages in 6s 89 pack&#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\/2350"}],"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=2350"}],"version-history":[{"count":4,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2350\/revisions"}],"predecessor-version":[{"id":2354,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/2350\/revisions\/2354"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}