Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

sharp@0.20.8 install error #111

Open
ahmet-cetinkaya opened this issue Oct 3, 2021 · 2 comments
Open

sharp@0.20.8 install error #111

ahmet-cetinkaya opened this issue Oct 3, 2021 · 2 comments

Comments

@ahmet-cetinkaya
Copy link

Node version: v14.18.0
NPM version: 6.14.15

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.20.8 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.20.8 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:

 ERROR

Command failed with exit code 1: npm install



  Error: Command failed with exit code 1: npm install

  - error.js:60 makeError
    [npm]/[gatsby-cli]/[execa]/lib/error.js:60:11

  - index.js:118 handlePromise
    [npm]/[gatsby-cli]/[execa]/index.js:118:26

  - task_queues.js:95 processTicksAndRejections
    internal/process/task_queues.js:95:5

  - init-starter.js:135 install
    [npm]/[gatsby-cli]/lib/init-starter.js:135:7

  - init-starter.js:202 clone
    [npm]/[gatsby-cli]/lib/init-starter.js:202:3

  - init-starter.js:343 initStarter
    [npm]/[gatsby-cli]/lib/init-starter.js:343:5

  - create-cli.js:494
    [npm]/[gatsby-cli]/lib/create-cli.js:494:9

full.log

@Snickdx
Copy link

Snickdx commented Dec 12, 2021

Bumping this issue, same error

21420 error ../src/common.cc:37:15: error: redefinition of ‘std::string sharp::AttrAsStr’
21420 error    37 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error       |               ^~~~~~~~~
21420 error In file included from ../src/common.cc:27:
21420 error ../src/common.h:83:15: note: ‘std::string sharp::AttrAsStr’ previously declared here
21420 error    83 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
21420 error       |               ^~~~~~~~~
21420 error ../src/common.cc:37:29: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
21420 error    37 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error       |                             ^~~~~~
21420 error       |                             JobHandle
21420 error ../src/common.cc:37:46: error: expected primary-expression before ‘>’ token
21420 error    37 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error       |                                              ^
21420 error ../src/common.cc:37:48: error: ‘obj’ was not declared in this scope
21420 error    37 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error       |                                                ^~~
21420 error ../src/common.cc:37:65: error: expected primary-expression before ‘attr’
21420 error    37 |   std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr) {
21420 error       |                                                                 ^~~~
21420 error ../src/common.cc:42:20: error: redefinition of ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’
21420 error    42 |   InputDescriptor* CreateInputDescriptor(
21420 error       |                    ^~~~~~~~~~~~~~~~~~~~~
21420 error In file included from ../src/common.cc:27:
21420 error ../src/common.h:95:20: note: ‘sharp::InputDescriptor* sharp::CreateInputDescriptor’ previously defined here
21420 error    95 |   InputDescriptor* CreateInputDescriptor(
21420 error       |                    ^~~~~~~~~~~~~~~~~~~~~
21420 error ../src/common.cc:43:9: error: ‘Handle’ is not a member of ‘v8’; did you mean ‘JobHandle’?
21420 error    43 |     v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error       |         ^~~~~~
21420 error       |         JobHandle
21420 error ../src/common.cc:43:26: error: expected primary-expression before ‘>’ token
21420 error    43 |     v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error       |                          ^
21420 error ../src/common.cc:43:28: error: ‘input’ was not declared in this scope
21420 error    43 |     v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error       |                            ^~~~~
21420 error ../src/common.cc:43:70: error: expected primary-expression before ‘&’ token
21420 error    43 |     v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error       |                                                                      ^
21420 error ../src/common.cc:43:71: error: ‘buffersToPersist’ was not declared in this scope
21420 error    43 |     v8::Handle<v8::Object> input, std::vector<v8::Local<v8::Object>> &buffersToPersist
21420 error       |                                                                       ^~~~~~~~~~~~~~~~
21420 error make: *** [sharp.target.mk:138: Release/obj.target/sharp/src/common.o] Error 1
21420 error gyp ERR! build error
21420 error gyp ERR! stack Error: `make` failed with exit code: 2
21420 error gyp ERR! stack     at ChildProcess.onExit (/home/gitpod/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
21420 error gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
21420 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
21420 error gyp ERR! System Linux 5.13.0-1007-gcp
21420 error gyp ERR! command "/home/gitpod/.nvm/versions/node/v16.13.0/bin/node" "/home/gitpod/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
21420 error gyp ERR! cwd /workspace/gatsby-starter-personal-blog/node_modules/sharp
21420 error gyp ERR! node -v v16.13.0
21420 error gyp ERR! node-gyp -v v8.2.0
21420 error gyp ERR! not ok
21421 verbose exit 1

@HEKIIU
Copy link

HEKIIU commented Sep 6, 2023

me too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants