> [email protected] migrate /home/ubuntu/cita-truffle-box
> appchain-migrate migrate
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at Object.resolve (path.js:1090:7)
at join (/home/ubuntu/cita-truffle-box/node_modules/find-up/index.js:11:14)
at Function.module.exports.sync (/home/ubuntu/cita-truffle-box/node_modules/find-up/index.js:43:12)
at Function.Config.detect (/home/ubuntu/cita-truffle-box/node_modules/@nervos/appchain-truffle-migrate/dist/config/index.js:347:21)
at Object.run (/home/ubuntu/cita-truffle-box/node_modules/@nervos/appchain-truffle-migrate/dist/lib/commands/migrate.js:35:25)
at Command.run (/home/ubuntu/cita-truffle-box/node_modules/@nervos/appchain-truffle-migrate/dist/lib/command.js:101:20)
at Object.<anonymous> (/home/ubuntu/cita-truffle-box/node_modules/@nervos/appchain-truffle-migrate/dist/cli.js:23:9)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] migrate: `appchain-migrate migrate`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] migrate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2018-09-17T10_05_47_425Z-debug.log
And my truffle.js is:
module.exports = {
networks: {
network_name: {
host: '121.196.200.225', // eg. '121.196.200.225'
port: '1337', // eg. 1337
network_id: '*', // Use '*' to match any network id
privateKey: '0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6', // a string, required
}, // you can add other network after here
},
}
module.exports = {
networks: {
development: {
host: '121.196.200.225', // eg. '121.196.200.225'
port: '1337', // eg. 1337
network_id: '*', // Use '*' to match any network id
privateKey: '0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6', // a string, required
}, // you can add other network after here
},
}