🔥 딱! 오늘 자정까지 할인! 🔥

한가위 할인이 오늘(17일) 종료 됩니다. 눈여겨 봐왔던 강좌가 있다면 놓치지 마세요~ 🎁

truffle deploy network klaytn 실행 시 에러

미해결질문
이다언 프로필

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

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)

SEJONG IT EDU 프로필
SEJONG IT EDU 4달 전

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

이다언 프로필
이다언 4달 전

감사합니다.

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

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)

SEJONG IT EDU 프로필
SEJONG IT EDU 4달 전

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

이다언 프로필
이다언 4달 전

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

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

감사합니다.

SEJONG IT EDU 프로필
SEJONG IT EDU 4달 전

이렇게 해보시겠어요?

1. node_modules 폴더 지운다

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

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

4. npm install