작성
·
253
0
여기에 빨간 줄도 그어져 있구요
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)
답변 6
1
1
이렇게 해보시겠어요?
1. node_modules 폴더 지운다
2. admin권한으로 명령프롬프트 (cmd) 실행
3. npm install --global --production windows-build-tools
4. npm install
0
아니요. editor 인 visual studio code는 깔았는데요.
visual studio 는 무엇이고, 왜 깔아야 하고, 어디서 다운받아야 하나요?
감사합니다.
0
0
감사합니다.
하지만, 바꿨는데 같은 에러가 납니다.
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)
0