{"action":"created","issue":{"url":"https://api.github.com/repos/ethereumjs/testrpc/issues/134","repository_url":"https://api.github.com/repos/ethereumjs/testrpc","labels_url":"https://api.github.com/repos/ethereumjs/testrpc/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/ethereumjs/testrpc/issues/134/comments","events_url":"https://api.github.com/repos/ethereumjs/testrpc/issues/134/events","html_url":"https://github.com/ethereumjs/testrpc/issues/134","id":168388061,"number":134,"title":"Error: Cannot find module './build/Release/scrypt'","user":{"login":"pubkey","id":8926560,"avatar_url":"https://avatars.githubusercontent.com/u/8926560?v=3","gravatar_id":"","url":"https://api.github.com/users/pubkey","html_url":"https://github.com/pubkey","followers_url":"https://api.github.com/users/pubkey/followers","following_url":"https://api.github.com/users/pubkey/following{/other_user}","gists_url":"https://api.github.com/users/pubkey/gists{/gist_id}","starred_url":"https://api.github.com/users/pubkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubkey/subscriptions","organizations_url":"https://api.github.com/users/pubkey/orgs","repos_url":"https://api.github.com/users/pubkey/repos","events_url":"https://api.github.com/users/pubkey/events{/privacy}","received_events_url":"https://api.github.com/users/pubkey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-07-29T18:41:25Z","updated_at":"2016-12-30T09:36:29Z","closed_at":"2016-07-29T20:19:37Z","body":"I simply created a nodejs-file with the following content:\n\n``` javascript\nvar Web3=require('web3');\nvar web3=new Web3();\nvar TestRPC = require(\"ethereumjs-testrpc\");\nweb3.setProvider(TestRPC.provider());\n```\n\ntestrpc version: 2.1.0\nnodejs version: 6.2.2\ngcc version     : 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.1) \nos                   : Linux Mint 18 Sarah\n## Expected Behavior\n\nit should just do nothing but also not give errors.\n## Current Behavior\n\n```\nmodule.js:442\n    throw err;\n    ^\nError: Cannot find module './build/Release/scrypt'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/[myusername]/Desktop/testRPC/node_modules/ethereumjs-testrpc/node_modules/ethereumjs-wallet/node_modules/scrypt.js/node_modules/scrypt/index.js:3:20)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n```\n## Possible Solution\n\nIt seems the problem comes with ethereumjs-wallet\n## Steps to Reproduce (for bugs)\n1. create the javascript-file with the shown content\n2. install web3, ethereumsjs-testrpc\n3. run the file with nodejs\n"},"comment":{"url":"https://api.github.com/repos/ethereumjs/testrpc/issues/comments/269751088","html_url":"https://github.com/ethereumjs/testrpc/issues/134#issuecomment-269751088","issue_url":"https://api.github.com/repos/ethereumjs/testrpc/issues/134","id":269751088,"user":{"login":"dendej","id":1109579,"avatar_url":"https://avatars.githubusercontent.com/u/1109579?v=3","gravatar_id":"","url":"https://api.github.com/users/dendej","html_url":"https://github.com/dendej","followers_url":"https://api.github.com/users/dendej/followers","following_url":"https://api.github.com/users/dendej/following{/other_user}","gists_url":"https://api.github.com/users/dendej/gists{/gist_id}","starred_url":"https://api.github.com/users/dendej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dendej/subscriptions","organizations_url":"https://api.github.com/users/dendej/orgs","repos_url":"https://api.github.com/users/dendej/repos","events_url":"https://api.github.com/users/dendej/events{/privacy}","received_events_url":"https://api.github.com/users/dendej/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T09:36:29Z","updated_at":"2016-12-30T09:36:29Z","body":"My system is Mac OSX. The workaround I got is\r\n1. install \"scrypt\" manually (\"sudo npm install -g scrypt\")\r\n2. go to <ethereum-testrpc module folder>/node_modules/scrypt\r\n3. make a symbolic link to scrypt build folder e.g. \"ln -s /usr/local/lib/node_modules/scrypt/build build\"\r\n\r\nHope this is helpful"}}
{"actor":{"display_login":"dendej"}}