안녕하세요.
11일 전
선생님께서 인프런에 올리신 블록체인 관련 강좌를 모두 수강하고싶은 학생입니다.
혹시 맥유저도 선생님 강의를 들어도 괜찮은지 궁금해서 여쭈어봅니다.
감사합니다.


혹시 npm install 이 에러 알수 있을까요?
25일 전
npm ERR! code 128
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\user\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\user\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 128
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command git ls-remote ssh://git@github.com/gulpjs/gulp.git
npm ERR! npm ERR! Host key verification failed.
npm ERR! npm ERR! fatal: Could not read from remote repository.
npm ERR! npm ERR!
npm ERR! npm ERR! Please make sure you have the correct access rights
npm ERR! npm ERR! and the repository exists.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-02-10T13_09_43_743Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-02-10T13_09_49_373Z-debug.log

npm install시 오류
2달 전
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\kkang\addition-game-starter\node_modules\scrypt
gyp ERR! node -v v14.15.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN klay-dapp-boilerplate@0.0.1 No repository field.
npm WARN klay-dapp-boilerplate@0.0.1 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kkang\AppData\Roaming\npm-cache\_logs\2020-12-27T18_24_39_357Z-debug.log
이렇게 오류가 뜨네요 몇일째 이것해결하려고 하고 있는데 구글링과 이전 인프런 질문들 통하여서 시도해봐도 해결이 안되네요 조언 부탁드리겟습니다

npm run dev 후 module can't resolve 'scrypt.js'
6달 전
ERROR in ./node_modules/caver-js/packages/caver-klay/caver-klay-accounts/src/index.js
Module not found: Error: Can't resolve 'scrypt.js' in 'C:\Users\82102\Desktop\kklay\addition-game-starter\node_modules\caver-js\packages\caver-klay\caver-klay-accounts\src'
@ ./node_modules/caver-js/packages/caver-klay/caver-klay-accounts/src/index.js 34:15-35
@ ./node_modules/caver-js/packages sync ^\.\/.*\/src\/index\.js$
@ ./node_modules/caver-js/index.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js

truffle delpoy --network klaytn 오류
11달 전
truffle : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\USER\AppData\Roaming\npm\truffle.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlin k/?LinkID=135170)를 참조하십시오.위치 줄:1 문자:1+ truffle deploy --network klaytn+ ~~~~~~~ + CategoryInfo : 보안 오류: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
이렇게 오류가 뜨는데 이유가 뭔가요..?ㅠㅠ

1인 개발자가 비앱을 만들어서 카카오(클립)에 등록할수 있나요?
2020.01.20
많이 초보적인 질문을 해도 될까요? 죄송합니다 ㅜㅜ
지금 Bapp 만들기에 관심을 가지고 강의도 보고있는데요..
궁금한점이 있어요
뭐냐면,
개발자가 비앱을 만들면 나중에 카카오톡에 클립(지갑)에 자기가 만든 비앱이 쉽게 등록될수 있나요?
아니면 클립에 제가 만든 비앱이 등록되려면 특정한 심사를 거쳐야 등록 되는건가요?
지금 클레이튼과 연계된 비앱은 큰 회사들 같아서요
저같이 혼자 개발하는 사람도 비앱을 만들고 카카오나 카카오의 클립등에 비앱을 쉽게 등록할수 있는지가 궁금합니다

cannot find module error 질문드립니다.
2020.01.01
klaytn documents에 공지돼 있는 내용대로 contracts 밑에 KlaytnGreetor.sol, 1_initial_migrations.js, truffle-config.js를 다음과 같이 바꾼 뒤
배포하기 위해서 터미널에서 다음과 같이 입력했습니다.
npm install truffle-hdwallet-provider
truffle deploy --network testnet
그런데 위와 같은 에러가 계속 나서 해결하지 못하고 있습니다.
혹시 해결방안이 있을까요?

Visual Studio Code에서 sol 파일의 오류표시 나타나지 않게 할 수 있을까요?
2019.11.23
Visual Studio Code에서 AdditionGame.sol 파일에서
빨간 줄 표시되면서 컴파일 오류가 있는 것 처럼 나타납니다.
물론 실행하는데 문제가 없는 건 알고 있지만, 컴파일 오류가 발생한것 처럼 보이는 빨간 줄 보이지 않게 하는 방법 좀 알려주세요
pragma 단어의 오류 메시지는
Expected identifier, got 'LParen' 로 나타납니다.

Truffle deploy 시 내트워크 오류
2019.11.18
"Deploy Migrations...."
.... undefined
Error: encountered, bailing, network state unknown, Review successful transactions manually.
Error: Invalid JSON RPC response { "id": 5, "jsonrpc": "2.0"}
위와 같은 에러를 출력하고 있습니다.
Docs klaytn 애선 같은 오류시 계정 언락만 이야기 나오네요.
확인 부탁 드립니다.

PBFT, IBFT 차이점은 무엇인가요?
2019.11.17
안녕하세요 블록체인 입문학생입니다.
강의를 듣다보니, PBFT에 대하여 알고있었는데 IBFT와의 정확한 차이점을 모르겠습니다. ㅠㅠ

changeUI 메소드에 관련해서 질문드립니다.
2019.11.15
if (await this.callOwner() === walletInstance.address) {
$('#owner').show();
}
이 부분의 코드가 실행이 되지 않는 것 같습니다.
changeUI: async function (walletInstance) {
$('#loginModal').modal('hide');
$('#login').hide();
$('#logout').show();
$('#address').append('<br>' + '<p>' + '내 계정 주소: ' + walletInstance.address + '</p>');
$('#contractBalance').append('<p>' + '이벤트 잔액: ' + cav.utils.fromPeb(await this.callContractBalance(), "KLAY") + ' KLAY' + '</p>');
$('#owner').show
이런 식으로 변경시엔 브라우저에 렌더링됩니다.
강의에서 설명해주신대로 똑같이 코드를 작성했는데 어느부분이 문제인지 잘 파악이 안됩니다.
walletInstance.address는 privateKey에 해당하는 사용자 계정으로 알고 있는데
this.callOwner 메소드 호출시 리턴되는 agContract.methods.owner().call()도 사용자계정을 리턴하는 건가요?
문제가 무엇인지 알고 싶습니다.

비트코인 노드가 하향 평준화 된다는게 무슨말이죠?
2019.11.07
이제 막 공부해서 제가 잘못된 내용을 학습 했을 수도 있는데요.
여러 노드가 작업증명을 할때 가장 빠른 작업증명을 한 노드로 선정되는게 아닌가요?... 저는 그렇게 배워서요..
뭔가 강좌에서는 가장 느린 컴퓨터에 맞춰서 하향 평준화 된다고 말씀해주셔서 이게 무슨 내용인지 이해가 ㄴ잘 안되서요.

klaytn 오류
2019.10.24
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)
이런 오류들이 나는데 어떻게 해야하는지 알 수 있을까요?

truffle deploy --network klaytn
2019.10.24
truffle deploy --network klaytn
Unknown network "klaytn". See your Truffle configuration file for available networks.
이부분이 자꾸 에러가 나는데 왜 그런걸까요?
// truffle.js config for klaytn.
const PrivateKeyConnector = require('connect-privkey-to-provider')
const NETWORK_ID = '1001'
const GASLIMIT = '20000000'
const URL = 'https://api.baobab.klaytn.net:8651'
const PRIVATE_KEY = '0xeecef88631d7a8fa09a2209134a69ec4d64ffe7a7fef7a11b86a13cf758940fa'
module.exports = {
networks: {
klaytn: {
provider: new PrivateKeyConnector(PRIVATE_KEY, URL),
network_id: NETWORK_ID,
gas: GASLIMIT,
gasPrice: null,
}
}
}
이건 truffle.js 파일입니다.