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 7달 전

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

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

감사합니다.

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

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 7달 전

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

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

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

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

감사합니다.

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

이렇게 해보시겠어요?

1. node_modules 폴더 지운다

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

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

4. npm install

지식공유자 되기
많은 사람들에게 배움의 기회를 주고,
경제적 보상을 받아보세요.
지식공유참여
기업 교육을 위한 인프런
“인프런 비즈니스” 를 통해 모든 팀원이 인프런의 강의들을
자유롭게 학습하는 환경을 제공하세요.
인프런 비즈니스