UtkaDuck123
@UtkaDuck123

Ошибки при установке модулей npm (npm i / yarn install)?

Во время установки зависимостей проекта (со strapi) появляются ошибки:
npm ERR! code 1
npm ERR! path E:\react-projects\isabitv-backend\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-gyp rebuild && node install/dll-copy)
npm ERR! info sharp Using cached C:\Users\dicha\AppData\Local\npm-cache\_libvips\libvips-8.9.0-win32-x64.tar.gz
npm ERR! info sharp Creating E:\react-projects\isabitv-backend\node_modules\sharp\build\Release
npm ERR! info sharp Copying DLLs from E:\react-projects\isabitv-backend\node_modules\sharp\vendor\lib to E:\react-projects\isabitv-backend\node_modules\sharp\build\Release
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.1.0
npm ERR! gyp info using node@15.13.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "C:\Users\dicha\AppData\Local\Programs\Python\Python39\python.exe"
npm ERR! gyp info find VS using VS2019 (16.10.31424.327) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\dicha\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'E:\\NodeJS\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'E:\\react-projects\\isabitv-backend\\node_modules\\sharp\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'E:\\NodeJS\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\dicha\\AppData\\Local\\node-gyp\\Cache\\15.13.0\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\dicha\\AppData\\Local\\node-gyp\\Cache\\15.13.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=E:\\NodeJS\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\dicha\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\15.13.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=E:\\react-projects\\isabitv-backend\\node_modules\\sharp',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'E:\\react-projects\\isabitv-backend\\node_modules\\sharp\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: C:\Users\dicha\AppData\Local\node-gyp\Cache\15.13.0\common.gypi not found (cwd: E:\react-projects\isabitv-backend\node_modules\sharp) while reading includes of binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (E:\NodeJS\node_modules\npm\node_modules\@npmcli\run-script\node_modules\node-gyp\lib\configure.js:353:16)       
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:369:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19041
npm ERR! gyp ERR! command "E:\\NodeJS\\node.exe" "E:\\NodeJS\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\react-projects\isabitv-backend\node_modules\sharp
npm ERR! gyp ERR! node -v v15.13.0
npm ERR! gyp ERR! node-gyp -v v8.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dicha\AppData\Local\npm-cache\_logs\2021-07-15T15_38_43_561Z-debug.log
  • Вопрос задан
  • 646 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы