inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습

truffle deploy network klaytn 실행 시 에러

319

이다언

작성한 질문수 1

0

여기에 빨간 줄도 그어져 있구요

pragma solidity ^0.4.24;

 

터미널입니다.

Error: Cannot find module './build/Release/scrypt'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)

    at Function.Module._load (internal/modules/cjs/loader.js:508:25)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer Related Files\Blockchain_블록체인\Klaytn\addition-game-starter\node_modules\scrypt\index.js:3:20)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer Related Files\Blockchain_블록체인\Klaytn\addition-game-starter\node_modules\scrypt.js\node.js:1:14)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer Related Files\Blockchain_블록체인\Klaytn\addition-game-starter\node_modules\connect-privkey-to-provider\node_modules\caver-js\packages\caver-klay\caver-klay-accounts\src\index.js:34:16)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

blockchain

답변 6

1

joonho1221

여기답변들은 통 도움되는게 없네

1

SEJONG IT EDU

이렇게 해보시겠어요?

1. node_modules 폴더 지운다

2. admin권한으로 명령프롬프트 (cmd) 실행

3. npm install --global --production windows-build-tools

4. npm install

0

이다언

아니요. editor 인 visual studio code는 깔았는데요.

visual studio 는 무엇이고, 왜 깔아야 하고, 어디서 다운받아야 하나요?

감사합니다.

0

SEJONG IT EDU

혹시 비쥬얼 스튜디오 설치되어 있으세요? visual studio code 아니고 visual studio

0

이다언

감사합니다.

하지만, 바꿨는데 같은 에러가 납니다. 

toglo@LAPTOP-QLH5C0HU MINGW64 /c/Computer_Related_Files/Blockchain/Klaytn/addition-game-starter (master)

$ truffle deploy --compile-all --reset --network klaytn

Error: Cannot find module 'scrypt'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)

    at Function.Module._load (internal/modules/cjs/loader.js:508:25)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer_Related_Files\Blockchain\Klaytn\addition-game-starter\node_modules\scrypt.js\node.js:1:14)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer_Related_Files\Blockchain\Klaytn\addition-game-starter\node_modules\connect-privkey-to-provider\node_modules\caver-js\packages\caver-klay\caver-klay-accounts\src\index.js:34:16)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (C:\Computer_Related_Files\Blockchain\Klaytn\addition-game-starter\node_modules\connect-privkey-to-provider\node_modules\caver-js\packages\caver-klay\src\index.js:32:18)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

0

SEJONG IT EDU

Blockchain_블록체인 폴더를 다 영어로 바꾸고 해보세요~ 예: ..\Blockchain\Klaytn

npm install 에러

0

507

0

truffle deploy --network klaytn

0

242

0

컴파일 에러

0

347

0

npm install 에러 납니다.

0

1026

1

npm install 삼일 내내 검색했는데 해결 못했습니다...

0

367

1

npm run dev 했는데

0

1051

2

deploy 실행파일

0

369

1

솔리디티 4.1.15 이상의 버전은 안되나요?

0

248

0

함수를 async를 사용하여 비동기로 작성한 이유가 궁금합니다.

2

335

0

truffle deploy에러 문의입니다 : >

0

428

0

IDE 인터페이스가 달라져 강좌를 계속하기 어렵습니다

3

453

3

실행이 안 됩니다.

0

304

2

truffle deploy --network klaytn 오류

0

291

2

아니..지금 쓰는거랑 아예 인터페이스가 다른데 강좌를 내리던가 해야할듯요

0

209

1

송금 이후 once transactionHash 쪽에서 에러 나는데 도움 부탁드려요.

0

201

0

유니티에서도 사용이 가능한가요?

0

256

1

강의 잘들었습니다. then은 되는데 on이 안되네요..

0

203

1

checkValidKeystore 함수 수정

1

189

0

invalid or does not take any parameters 오류 해결방법

1

454

1

컨트랙트 재배포 문의

0

362

1

정답 제출 및 클레이 받기 부분에서 질문있습니다.

0

167

1

npm install 에러 뜹니다. 방법 있으실까요?

0

719

1

truffle deploy --network klaytn 오류

0

209

1

상급강좌 설문조사

0

156

0