This repository was archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Initializing Repo Instrucitons - Geth & Truffle #5
Copy link
Copy link
Open
Description
I tried to get this repo up and running. I could get npm to install and run on my local machine but was given these errors when I tried to run the truffle compile / truffle migrate commands:
Error: Using 'babel-preset-react-app' requires that you specify 'NODE_ENV' or 'BABEL_ENV' environment variables. Valid values are "development", "test", and "production". Instead, received: undefined. (While processing preset: "/Users/john/Dev/projects/temp/truffle-box/node_modules/babel-preset-react-app/index.js")
I fixed this by adding the variable in front of my command:
NODE_ENV=test truffle compile
NODE_ENV=test truffle migrate
Then I got this error:
Error: Invalid JSON RPC response: "Error: connect ECONNREFUSED 127.0.0.1:8545\n at Object.exports._errnoException (util.js:1022:11)\n at exports._exceptionWithHostPort (util.js:1045:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)"
So I opened up another terminal, opened a geth console, and executed this command to get it working:
geth console
admin.startRPC("127.0.0.1", 8545, "*", "web3,db,net,eth")
After that, the compile worked just fine but the migration did not. I got this error:
^
ReferenceError: artifacts is not defined```
This however, I'm not sure what the intention is. I can re-map it to ./contracts/Migrations.sol and the same for the SimpleStore.sol file, but not sure what artifacts is, and the metacoin file also includes a missing a wrong "./MetaCoin.sol" when I believe you're really trying to reach the ./TestMetacoin.sol file. Not sure if the intention is to use https://github.com/trufflesuite/truffle-artifactor... just looking for some clarification. I've included a pull request here (https://github.com/truffle-box/truffle-box-uport/pull/4) to fix some of these issues, but not exactly sure where to go in order to resolve all the artifact stuff.
Metadata
Metadata
Assignees
Labels
No labels