• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

sharp 설치가 안됩니다.

20.07.03 19:41 작성 조회수 356

0

> node-addon-api@3.0.0 install /home/donggun/Desktop/Project/Nodebird/lambda/node_modules/node-addon-api

> node-gyp rebuild

gyp: binding.gyp not found (cwd: /home/donggun/Desktop/Project/Nodebird/lambda/node_modules/node-addon-api) while trying to load binding.gyp

gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onCpExit (/home/donggun/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)

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

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

gyp ERR! System Linux 5.3.0-61-generic

gyp ERR! command "/home/donggun/.nvm/versions/node/v10.13.0/bin/node" "/home/donggun/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /home/donggun/Desktop/Project/Nodebird/lambda/node_modules/node-addon-api

gyp ERR! node -v v10.13.0

gyp ERR! node-gyp -v v3.6.0

gyp ERR! not ok 

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! node-addon-api@3.0.0 install: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the node-addon-api@3.0.0 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/donggun/.npm/_logs/2020-07-03T10_35_58_675Z-debug.log

 밑에 코드를 pakage.json에 추가했는데도 해결이 되지 않습니다.

"repository": {
"type": "git",
"url": "git+https://github.com/bathingape/Nodebird.git"
},
"bugs": {
"url": "https://github.com/bathingape/Nodebird/issues"
},
"homepage": "https://github.com/bathingape/Nodebird#readme"

답변 1

답변을 작성해보세요.

0

sudo apt-get install build-essential

build-essential 설치로 node-gyp를 재설치해야할 것 같습니다.

npm install --unsafe-perm sharp