• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    해결됨

npm install

19.05.27 14:18 작성 조회수 226

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

황성욱님의 프로필

황성욱

질문자

2019.05.27

감사합니다 잘되네요

0

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

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