Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm install error #70

Open
Raz0rStorm opened this issue Apr 12, 2023 · 3 comments
Open

Npm install error #70

Raz0rStorm opened this issue Apr 12, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Raz0rStorm
Copy link

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

@Raz0rStorm Raz0rStorm added the bug Something isn't working label Apr 12, 2023
@lover-shadow
Copy link

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

@Raz0rStorm
Copy link
Author

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"

@waylaidwanderer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants