inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

Baobab에 스마트 계약 배포 2

klaytn 오류

343

마음을 녹이는 강아지

작성한 질문수 0

0

Error: Cannot find module 'connect-privkey-to-provider'

Require stack:

- E:\addition-game-starter-master\truffle.js

- E:\node_modules\truffle\node_modules\original-require\index.js

- E:\node_modules\truffle\build\cli.bundled.js

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

    at Function.Module._load (internal/modules/cjs/loader.js:687:27)

    at Module.require (internal/modules/cjs/loader.js:849:19)

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

    at Object.<anonymous> (E:\addition-game-starter-master\truffle.js:2:29)

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

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

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

    at Function.Module._load (internal/modules/cjs/loader.js:724:14)

    at Module.require (internal/modules/cjs/loader.js:849:19)

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

    at Function.Config.load (E:\node_modules\truffle\build\webpack:\packages\truffle-config\index.js:254:1)

    at Function.Config.detect (E:\node_modules\truffle\build\webpack:\packages\truffle-config\index.js:243:1)

    at Object.run (E:\node_modules\truffle\build\webpack:\packages\truffle-core\lib\commands\migrate.js:35:1)

    at Command.run (E:\node_modules\truffle\build\webpack:\packages\truffle-core\lib\command.js:101:1)

    at Object.<anonymous> (E:\node_modules\truffle\build\webpack:\packages\truffle-core\cli.js:22:1)

    at __webpack_require__ (E:\node_modules\truffle\build\webpack:\webpack\bootstrap 0791995565e53f633c90:19:1)

    at E:\node_modules\truffle\build\webpack:\webpack\bootstrap 0791995565e53f633c90:65:1

    at Object.<anonymous> (E:\node_modules\truffle\build\cli.bundled.js:71:10)

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

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

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

이런 오류들이 나는데 어떻게 해야하는지 알 수 있을까요?

blockchain

답변 3

0

스와니조

저는 좀 주먹구구식으로 해결했었네요.

평소 파워쉘을 열고난 위치 바로 있는곳에서
npm i connect-privkey-to-provider 명령어를 치니까

여기에 있는 node_modules 폴더 안에

다운로드 되는 동안에 잠깐

connect-privkey-to-provider 폴더가 생겼다가

다운로드 끝나니까 사라지는거에요..?

그래서 사라지기 전에 폴더자체를 복사해서 빼두고
파일 안에 (node_modules 폴더가 또 있길래 지웠어요)

강좌에서 진행중인 프로젝트 폴더에 있는

node_modules 안에 복붙하고 돌렸더니 해결됐어요!

당시 connect-privkey-to-provider 파일 내부에요.

(코드는 바꾼거 없어요.)

화이팅.

0

해성

해결하셨나요?? 1주일째막혀잇네요

0

워니

저도 똑같은 오류 발생하네요ㅜㅠ

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

452

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