lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
28.96k stars 1.29k forks source link

Can't able to install sharp module in windows 10 #961

Closed ganny26 closed 7 years ago

ganny26 commented 7 years ago

npm-debug.log

Step to reproduce:

Using below node and npm versions

λ node -v v6.9.0 λ npm -v 3.10.8 λ npm install sharp --save

D:\Work\ocr-api\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mod ules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Micros oft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [D:\Work\ocr-api\node_modules\sharp\ build\binding.sln] gyp ERR! build error gyp ERR! stack Error:C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebui ld"
gyp ERR! cwd D:\Work\ocr-api\node_modules\sharp
gyp ERR! node -v v6.9.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN ocr-api@1.0.0 No description
npm WARN ocr-api@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sharp" "--save"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! sharp@0.18.4 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.18.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sharp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sharp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sharp
npm ERR! There is likely additional logging output above.
`

Please find attached file for detailed verbose log generated npm install --verbose sharp

lovell commented 7 years ago

Hello, please see https://github.com/lovell/sharp/issues/483#issuecomment-229372709

santhosh3 commented 1 year ago

I am getting error while installing sharp package I am using windows 10 pro 64bit and node version is 18.14.0 and npm version is 9.3.1 please help me with this

lovell commented 1 year ago

@santhosh3 Please open a new installation issue and answer all of the questions if you still require help.