• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

klaytn 오류

19.10.24 01:23 작성 조회수 174

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)

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

답변 3

·

답변을 작성해보세요.

0

스와니조님의 프로필

스와니조

2021.07.13

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

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

여기에 있는 node_modules 폴더 안에

다운로드 되는 동안에 잠깐

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

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

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

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

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

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

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

화이팅.

0

해성님의 프로필

해성

2020.01.13

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

0

워니님의 프로필

워니

2019.12.05

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