inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

Baobab에 스마트 계약 배포 1

npm install

384

tae hyung kim

작성한 질문수 2

0

npm install을 하면

> scrypt@6.0.3 preinstall C:\Users\LG\addition-game-starter\node_modules\scrypt

> node node-scrypt-preinstall.js

 

 

> keccak@1.4.0 install C:\Users\LG\addition-game-starter\node_modules\keccak

> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."

 

 

> keccak@1.4.0 rebuild C:\Users\LG\addition-game-starter\node_modules\keccak

> node-gyp rebuild

 

 

C:\Users\LG\addition-game-starter\node_modules\keccak>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Command failed: C:\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];

gyp ERR! stack   File "<string>", line 1

gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];

gyp ERR! stack                                ^

gyp ERR! stack SyntaxError: invalid syntax

gyp ERR! stack

gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)

gyp ERR! stack     at ChildProcess.emit (events.js:198:13)

gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

gyp ERR! System Windows_NT 10.0.17134

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\LG\addition-game-starter\node_modules\keccak

gyp ERR! node -v v10.16.0

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the keccak@1.4.0 rebuild script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm WARN Local package.json exists, but node_modules missing, did you mean to install?

 

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\LG\AppData\Roaming\npm-cache\_logs\2019-06-18T07_15_07_797Z-debug.log

"Keccak bindings compilation fail. Pure JS implementation will be used."

 

> scrypt@6.0.3 install C:\Users\LG\addition-game-starter\node_modules\scrypt

> node-gyp rebuild

 

 

C:\Users\LG\addition-game-starter\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Command failed: C:\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];

gyp ERR! stack   File "<string>", line 1

gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];

gyp ERR! stack                                ^

gyp ERR! stack SyntaxError: invalid syntax

gyp ERR! stack

gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)

gyp ERR! stack     at ChildProcess.emit (events.js:198:13)

gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

gyp ERR! System Windows_NT 10.0.17134

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\LG\addition-game-starter\node_modules\scrypt

gyp ERR! node -v v10.16.0

gyp ERR! node-gyp -v v3.8.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\LG\AppData\Roaming\npm-cache\_logs\2019-06-18T07_15_11_044Z-debug.log

 

이런 오류가 뜹니다. 어떻게 해야할까요...

 

node: 10.16.0

npm: 6.9.0

입니다

blockchain

답변 2

0

tae hyung kim

답변 감사합니다. 

하지만 위 코드를 실행해도

> windows-build-tools@5.1.0 postinstall C:\Users\LG\AppData\Roaming\npm\node_modules\windows-build-tools

> node ./dist/index.js

 

 

 

Downloading python-2.7.15.amd64.msi

[>                                            ] 0.0% (0 B/s)

Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\LG\.windows-build-tools\python-2.7.15.amd64.msi.

Downloading vs_BuildTools.exe

[>                                            ] 0.0% (0 B/s)

Downloaded vs_BuildTools.exe. Saved to C:\Users\LG\.windows-build-tools\vs_BuildTools.exe.

 

Starting installation...

events.js:174

      throw er; // Unhandled 'error' event

      ^

 

Error: spawn powershell.exe ENOENT

    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)

    at onErrorNT (internal/child_process.js:415:16)

    at process._tickCallback (internal/process/next_tick.js:63:19)

Emitted 'error' event at:

    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)

    at onErrorNT (internal/child_process.js:415:16)

    at process._tickCallback (internal/process/next_tick.js:63:19)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! windows-build-tools@5.1.0 postinstall: `node ./dist/index.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the windows-build-tools@5.1.0 postinstall 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\LG\AppData\Roaming\npm-cache\_logs\2019-06-19T05_50_44_289Z-debug.log

또 오류가 납니다..어떻게 해야할까요

0

SEJONG IT EDU

파이썬 버전문제인 것 같습니다. 

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

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

453

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