trufflemigrate 컴파일된 스마트 계약을 배치할 수 없습니다.Error: No network specified.
4025 단어 이더리움블록체인 비트코인 이더리움 EOS 개발
truffle init
truffle compile
open other terminal and run testrpc
truffle migrate
세 걸음 모두 정상적으로 지나갔는데, 내가 운행
truffle migrate
할 때 이 문제가 발생했다.Error: No network specified. Cannot determine current network.
at Object.detect (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:43157:23)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:200497:19
at finished (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:43085:9)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:198408:14
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:68162:7
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:163793:9
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:160353:16
at replenish (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:160873:25)
at iterateeCallback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:160863:17)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:160838:16
개발 환경: - node 9.1.0 - truffle 4.0.1 - testrpc 6.0.3
해결 방법:
프로필truffel을 설정해야 합니다.js에 설정된 네트워크
networks
는 프로젝트 폴더의 루트 디렉터리에 있습니다.module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // id
}
}
};
원문:http://cw.hubwiz.com/card/c/ethereum-FAQ/1/2/2/
그리고 이전 강좌를 추천합니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
웹 엔지니어가 사쿠와 사내 통화를 만들어 보았습니다.cryptocurrencies는 빠르기 때문에 이미 만드는 방법 등 정보가 오래되었을 수 있으므로 양해 바랍니다. 그래서 위에서 발행한 토큰을 사용하여 Slack에서 쉽게 전송할 수 있는 사내 통화 & Slack 앱...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.