Truffle/npm error “Expected parameter 'from' not passed to function”
I am playing with Truffle and while building, I am getting the following error. I searched internet but found nothing useful.
While running the "truffle.cmd deploy" command.
C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3
expected_keys.forEach(function(key) { ^ Error: Expected parameter 'from' not passed to function.
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:5:1
at Array.forEach ()
at Object.options (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3:1)
at Object.run (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:122:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-corelibcommandsmigrate.js:79:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:291:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:115:1
at done (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:61:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:118:1
at FSReqWrap.oncomplete (fs.js:153:5) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tip-and-win@1.0.0 start:start cmd /K
npm ERR! Exit status 1 npm ERR! npm ERR!
ganache-cli --deterministic && truffle.cmd deploy && cd app && npm
install && npm run start
Failed at the tip-and-win@1.0.0 start script. npm ERR! This is
probably not a problem with npm. There is likely additional logging
output above. npm WARN Local package.json exists, but node_modules
missing, did you mean to install?
blockchain truffle npm-start
add a comment |
I am playing with Truffle and while building, I am getting the following error. I searched internet but found nothing useful.
While running the "truffle.cmd deploy" command.
C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3
expected_keys.forEach(function(key) { ^ Error: Expected parameter 'from' not passed to function.
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:5:1
at Array.forEach ()
at Object.options (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3:1)
at Object.run (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:122:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-corelibcommandsmigrate.js:79:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:291:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:115:1
at done (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:61:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:118:1
at FSReqWrap.oncomplete (fs.js:153:5) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tip-and-win@1.0.0 start:start cmd /K
npm ERR! Exit status 1 npm ERR! npm ERR!
ganache-cli --deterministic && truffle.cmd deploy && cd app && npm
install && npm run start
Failed at the tip-and-win@1.0.0 start script. npm ERR! This is
probably not a problem with npm. There is likely additional logging
output above. npm WARN Local package.json exists, but node_modules
missing, did you mean to install?
blockchain truffle npm-start
add a comment |
I am playing with Truffle and while building, I am getting the following error. I searched internet but found nothing useful.
While running the "truffle.cmd deploy" command.
C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3
expected_keys.forEach(function(key) { ^ Error: Expected parameter 'from' not passed to function.
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:5:1
at Array.forEach ()
at Object.options (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3:1)
at Object.run (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:122:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-corelibcommandsmigrate.js:79:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:291:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:115:1
at done (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:61:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:118:1
at FSReqWrap.oncomplete (fs.js:153:5) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tip-and-win@1.0.0 start:start cmd /K
npm ERR! Exit status 1 npm ERR! npm ERR!
ganache-cli --deterministic && truffle.cmd deploy && cd app && npm
install && npm run start
Failed at the tip-and-win@1.0.0 start script. npm ERR! This is
probably not a problem with npm. There is likely additional logging
output above. npm WARN Local package.json exists, but node_modules
missing, did you mean to install?
blockchain truffle npm-start
I am playing with Truffle and while building, I am getting the following error. I searched internet but found nothing useful.
While running the "truffle.cmd deploy" command.
C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3
expected_keys.forEach(function(key) { ^ Error: Expected parameter 'from' not passed to function.
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:5:1
at Array.forEach ()
at Object.options (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-expectindex.js:3:1)
at Object.run (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:122:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-corelibcommandsmigrate.js:79:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:291:1
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrateindex.js:115:1
at done (C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:61:1)
at C:Usersuser_nameAppDataRoamingnpmnode_modulestrufflebuildwebpack:~truffle-migrate~node-dirlibpaths.js:118:1
at FSReqWrap.oncomplete (fs.js:153:5) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! tip-and-win@1.0.0 start:start cmd /K
npm ERR! Exit status 1 npm ERR! npm ERR!
ganache-cli --deterministic && truffle.cmd deploy && cd app && npm
install && npm run start
Failed at the tip-and-win@1.0.0 start script. npm ERR! This is
probably not a problem with npm. There is likely additional logging
output above. npm WARN Local package.json exists, but node_modules
missing, did you mean to install?
blockchain truffle npm-start
blockchain truffle npm-start
edited Jan 2 at 2:09
Dale Burrell
3,26032553
3,26032553
asked May 25 '18 at 7:05
Barış AkkurtBarış Akkurt
1,58611633
1,58611633
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Your current provider did not have any account. so, first you need to create an account on your rpc network by personal.newAccount(); after that run truffle migrate.
Hope this will help you to resolve this issue.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50523337%2ftruffle-npm-error-expected-parameter-from-not-passed-to-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your current provider did not have any account. so, first you need to create an account on your rpc network by personal.newAccount(); after that run truffle migrate.
Hope this will help you to resolve this issue.
add a comment |
Your current provider did not have any account. so, first you need to create an account on your rpc network by personal.newAccount(); after that run truffle migrate.
Hope this will help you to resolve this issue.
add a comment |
Your current provider did not have any account. so, first you need to create an account on your rpc network by personal.newAccount(); after that run truffle migrate.
Hope this will help you to resolve this issue.
Your current provider did not have any account. so, first you need to create an account on your rpc network by personal.newAccount(); after that run truffle migrate.
Hope this will help you to resolve this issue.
answered Jan 1 at 17:33
Rajat KesharRajat Keshar
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50523337%2ftruffle-npm-error-expected-parameter-from-not-passed-to-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown