인프런 커뮤니티 질문&답변

황성욱님의 프로필 이미지
황성욱

작성한 질문수

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

Baobab에 스마트 계약 배포 1

npm install

해결된 질문

작성

·

290

0

yelcow@yelcow:~/bapp/addition-game-starter$ sudo npm install

[sudo] password for yelcow: 

 

> scrypt@6.0.3 preinstall /home/yelcow/bapp/addition-game-starter/node_modules/scrypt

> node node-scrypt-preinstall.js

 

 

> keccak@1.4.0 install /home/yelcow/bapp/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 /home/yelcow/bapp/addition-game-starter/node_modules/keccak

> node-gyp rebuild

 

gyp ERR! configure error 

gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/yelcow/bapp/addition-game-starter/node_modules/keccak/build'

gyp ERR! System Linux 4.15.0-50-generic

gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /home/yelcow/bapp/addition-game-starter/node_modules/keccak

gyp ERR! node -v v10.15.3

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!     /home/yelcow/.npm/_logs/2019-05-27T05_16_02_930Z-debug.log

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

 

> scrypt@6.0.3 install /home/yelcow/bapp/addition-game-starter/node_modules/scrypt

> node-gyp rebuild

 

gyp ERR! configure error 

gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/yelcow/bapp/addition-game-starter/node_modules/scrypt/build'

gyp ERR! System Linux 4.15.0-50-generic

gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /home/yelcow/bapp/addition-game-starter/node_modules/scrypt

gyp ERR! node -v v10.15.3

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":"linux","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!     /home/yelcow/.npm/_logs/2019-05-27T05_16_04_875Z-debug.log

어떻게 해결하나요?

node -v 10.15.3

npm -v 6.9.0

truffle v 4.1.15

답변 2

0

황성욱님의 프로필 이미지
황성욱
질문자

감사합니다 잘되네요

0

SEJONG IT EDU님의 프로필 이미지
SEJONG IT EDU
지식공유자

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

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

황성욱님의 프로필 이미지
황성욱

작성한 질문수

질문하기