waylaidwanderer/PandoraAI

Npm install error

Raz0rStorm opened this issue · 3 comments

Describe the bug
Encountered error when doing npm install

To Reproduce
Steps to reproduce the behavior:

  1. Go to github, download as zip
  2. Cmd, type npm install
  3. After a while
  4. See error

Expected behavior
should complete install

Console info:
D:\ai\bing\PandoraAI-main>npm install
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm ERR! code 1
npm ERR! path D:\ai\bing\PandoraAI-main\node_modules\sharp
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-win32-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: Request timed out

npm ERR! A complete log of this run can be found in: C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_22_55_283Z-debug-0.log

Desktop (please complete the following information):

  • OS: Win10
  • Browser: Firefox
  • Version 112.0

Additional context
Fresh install of node 19.9.0, using proxy, if that maybe the cause
Log content:0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.6.3
2 info using node@v19.9.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:D:\ai\bing\PandoraAI-main.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\25693.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\25693\AppData\Roaming\npm\etc\npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 10ms
17 timing npm:load:configload Completed in 10ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 1ms
20 verbose title npm run dev
21 verbose argv "run" "dev"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 3ms
24 timing npm:load:display Completed in 4ms
25 verbose logfile logs-max:10 dir:C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_26_10_362Z-
26 verbose logfile C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_26_10_362Z-debug-0.log
27 timing npm:load:logFile Completed in 9ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 27ms
31 silly logfile start cleaning logs, removing 2 files
32 silly logfile done cleaning log files
33 timing command:run Completed in 165ms
34 verbose exit 1
35 timing npm Completed in 208ms
36 verbose code 1

npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"
npm install sharp

npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp" npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips" npm install sharp

When using that, it told me "sharp_binary_host is not a valid npm option"

What Node.js version are you using? Try at least v18.