이 더 리 움 DApp 개발 환경 구축 - windows

3045 단어 DApp
이 가능 하 다, ~ 할 수 있다,...
npm install -- global -- production windows - build - tools npm install - g etherumjs - testpc 에 python 을 설치 하고 환경 변 수 를 설정 하여 pip python - m pip install - U pip truffle - contract 를 설치 합 니 다. 이 도 구 는 Truffle 에서 제공 합 니 다.NodeJS 와 브 라 우 저 에 Truffle 을 통합 하 는 계약 추상 적 인 실행 환경 npm install -- save truffle - contract 설치 NodeJS 에 사용 되 는 Truffle 실행 에 필요 한 웹 3 환경 npm install -- save web 3
1.1 node. js 설치
다운로드 후 64 비트 패키지 설치
PS C:\WINDOWS\system32> node -v
v8.10.0

1.2 노드 시 뮬 레이 터 설치
//  
npm install –g ganache-cli

//  
PS C:\WINDOWS\system32> ganache-cli
Ganache CLI v6.2.3 (ganache-core: 2.3.1)

1.3 솔 리드 컴 파일 러 설치
npm install –g solc

//test ,   ,   ,???
PS C:\WINDOWS\system32> solcjs -version
module.js:549
    throw err;
    ^

Error: Cannot find module './smtchecker.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object. (C:\Users\August\AppData\Roaming
pm
ode_modules\solc\solcjs:9:18) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) PS C:\WINDOWS\system32> solcjs -v module.js:549 throw err;

1.4 웹 3 설치
npm install –g [email protected]
  npm install --save web3

1.5 truffle 프레임 설치
npm install –g truffle

PS C:\WINDOWS\system32> truffle.cmd version
Truffle v4.1.14 (core: 4.1.14)
Solidity v0.4.24 (solc-js)

1.6 웹 팩 설치
npm install –g [email protected]
//    ,    ,???
webpack –v

닥 친 문제 와 해결 방안
remix - ide 알림 설치 하기 모듈 '. / build / Release / scrypt' 해결 열기 / usr / local / lib / nodemodules/remix-ide/node_modules / scrypt / index. js 는 require (". / build / Release / scrypt") 를 require ("scrypt") 로 변경 합 니 다.
"python setup. py egg info" 명령 을 해결 하 는 방법 은 \ AppData \ \ Local \ \ Temp \ \ pip - i python - m pip install -- upgrade -- force pip pip install pkgconfig 또는 down vote 에서 오류 코드 1 로 실 패 했 습 니 다. using the info from Oliver Zendel’s comment. I assume here that MinGW was installed to C:\MinGW. There were multiple versions of the packages available, and in each case I just downloaded the latest version. go to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ download the file pkg-config_0.26-1_win32.zip extract the file bin/pkg-config.exe to C:\MinGW\bin download the file gettext-runtime_0.18.1.1-2_win32.zip extract the file bin/intl.dll to C:\MinGW\bin go to http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28 download the file glib_2.28.8-1_win32.zip extract the file bin/libglib-2.0-0.dll to C:\MinGW\bin Now CMake will be able to use pkg-config if it is configured to use MinGW.

좋은 웹페이지 즐겨찾기