解决前端安装sharp出错问题sharp: Command failed.

这篇具有很好参考价值的文章主要介绍了解决前端安装sharp出错问题sharp: Command failed.。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

报错如下:sharp: Command failed.

cd C:\Users\xxx-api && yarn install

yarn install v1.22.19un\Documents\my_files\A-Web-Project\service-categories\service-categories-api> cd .\service-categories-api\
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @strapi/strapi > koa-body > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer@3.12.0: This project is unmaintained
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer > buildmail@3.10.0: This project is unmaintained
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-dom@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-router-dom@^5.2.0".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "styled-components@^5.2.1".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > formik@2.2.9" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/plugin-users-permissions > react-intl@6.3.2" has unmet peer dependency "react@^16.6.0 || 17 || 18".
warning "@strapi/plugin-users-permissions > react-query@3.24.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "@strapi/plugin-users-permissions > react-redux@8.0.5" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/state@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "codemirror@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/language@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/lint@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/search@>=6.0.0".warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > codemirror > @codemirror/autocomplete@6.4.2" has unmet peer dependency "@lezer/common@^1.0.0".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "styled-components@5.3.3".
[5/5] Building fresh packages...
[-/5] ⠄ waiting...
[-/5] ⡀ waiting...
[3/5] ⡀ sharp
[-/5] ⡀ waiting...
error C:\Users\xxx-api\node_modules\sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: C:\Users\xxx-api\node_modules\sharp
Output:




PS C:\Users\xxx-api> node install/libvips && node install/dll-copy && prebuild-install
At line:1 char:22
+ node install/libvips && node install/dll-copy && prebuild-install
+                      ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:47
+ node install/libvips && node install/dll-copy && prebuild-install
+                                               ~~
The token '&&' is not a valid statement separator in this version.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidEndOfLine

PS C:\Users\xxx-api> npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
PS C:\Users\xxx-api> npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
PS C:\Users\xxx-api> npm install sharp
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: styled-components@5.3.3
npm WARN Found: react-is@17.0.2
npm WARN node_modules/styled-components/node_modules/react-is
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-is@">= 16.8.0" from styled-components@5.3.3
npm WARN node_modules/styled-components
npm WARN   peer styled-components@">= 2" from babel-plugin-styled-components@2.1.1
npm WARN   node_modules/styled-components/node_modules/babel-plugin-styled-components
npm WARN   8 more (babel-plugin-styled-components, ...)
npm ERR! code 1
npm ERR! path C:\Users\xxx-api\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://npm.taobao.org/mirrors/sharp-libvips/v8.14.2/libvips-8.14.2-win32-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: self signed certificate in certificate chain

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jindi J Sun\AppData\Local\npm-cache\_logs\2023-04-07T07_39_48_839Z-debug-0.log
PS C:\Users\xxx-api> yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
yarn config v1.22.19
success Set "sharp_binary_host" to "https://npm.taobao.org/mirrors/sharp".
Done in 0.06s.
PS C:\Users\xxx-api> yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
yarn config v1.22.19
success Set "sharp_libvips_binary_host" to "https://npm.taobao.org/mirrors/sharp-libvips".
Done in 0.06s.
PS C:\Users\xxx-api> yarn add sharp
yarn add v1.22.19
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @strapi/strapi > koa-body > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer@3.12.0: This project is unmaintained
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer > buildmail@3.10.0: This project is unmaintained
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-dom@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-router-dom@^5.2.0".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "styled-components@^5.2.1".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-helmet@6.1.0" has unmet peer dependency "react@>=16.3.0".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > react-redux@8.0.5" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/plugin-users-permissions > react-intl@6.3.2" has unmet peer dependency "react@^16.6.0 || 17 || 18".
warning "@strapi/plugin-users-permissions > formik@2.2.9" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/plugin-users-permissions > react-query@3.24.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @floating-ui/react-dom@1.3.0" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @floating-ui/react-dom@1.3.0" has unmet peer dependency "react-dom@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@babel/runtime@>=7.11.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/state@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "codemirror@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "react-dom@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @radix-ui/react-use-callback-ref@1.0.0" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-helmet > react-side-effect@2.1.2" has unmet peer dependency "react@^16.3.0 || ^17.0.0 || ^18.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-redux > use-sync-external-store@1.2.0" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/language@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/lint@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/search@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > codemirror > @codemirror/autocomplete@6.4.2" has unmet peer dependency "@lezer/common@^1.0.0".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "styled-components@5.3.3".
[5/5] Building fresh packages...
[-/6] ⡀ waiting...
[6/6] ⡀ sharp
[3/6] ⡀ sharp
[-/6] ⢀ waiting...
error C:\Users\xxx-api\node_modules\@strapi\plugin-upload\node_modules\sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: C:\Users\xxx-api\node_modules\@strapi\plugin-upload\node_modules\sharp
Output:




PS C:cd C:\Users\xxx-api && yarn install

yarn install v1.22.19un\Documents\my_files\A-Web-Project\service-categories\service-categories-api> cd .\service-categories-api\
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @strapi/strapi > koa-body > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer@3.12.0: This project is unmaintained
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer > buildmail@3.10.0: This project is unmaintained
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-dom@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-router-dom@^5.2.0".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "styled-components@^5.2.1".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > formik@2.2.9" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/plugin-users-permissions > react-intl@6.3.2" has unmet peer dependency "react@^16.6.0 || 17 || 18".
warning "@strapi/plugin-users-permissions > react-query@3.24.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "@strapi/plugin-users-permissions > react-redux@8.0.5" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/state@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "codemirror@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/language@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/lint@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/search@>=6.0.0".warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/admin > @strapi/design-system > @uiw/react-codemirror > codemirror > @codemirror/autocomplete@6.4.2" has unmet peer dependency "@lezer/common@^1.0.0".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "styled-components@5.3.3".
[5/5] Building fresh packages...
[-/5] ⠄ waiting...
[-/5] ⡀ waiting...
[3/5] ⡀ sharp
[-/5] ⡀ waiting...
error C:\Users\xxx-api\node_modules\sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: C:\Users\xxx-api\node_modules\sharp
Output:




PS C:\Users\xxx-api> node install/libvips && node install/dll-copy && prebuild-install
At line:1 char:22
+ node install/libvips && node install/dll-copy && prebuild-install
+                      ~~
The token '&&' is not a valid statement separator in this version.
At line:1 char:47
+ node install/libvips && node install/dll-copy && prebuild-install
+                                               ~~
The token '&&' is not a valid statement separator in this version.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : InvalidEndOfLine

PS C:\Users\xxx-api> npm config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
PS C:\Users\xxx-api> npm config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
PS C:\Users\xxx-api> npm install sharp
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: styled-components@5.3.3
npm WARN Found: react-is@17.0.2
npm WARN node_modules/styled-components/node_modules/react-is
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-is@">= 16.8.0" from styled-components@5.3.3
npm WARN node_modules/styled-components
npm WARN   peer styled-components@">= 2" from babel-plugin-styled-components@2.1.1
npm WARN   node_modules/styled-components/node_modules/babel-plugin-styled-components
npm WARN   8 more (babel-plugin-styled-components, ...)
npm ERR! code 1
npm ERR! path C:\Users\xxx-api\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://npm.taobao.org/mirrors/sharp-libvips/v8.14.2/libvips-8.14.2-win32-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: self signed certificate in certificate chain

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jindi J Sun\AppData\Local\npm-cache\_logs\2023-04-07T07_39_48_839Z-debug-0.log
PS C:\Users\xxx-api> yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
yarn config v1.22.19
success Set "sharp_binary_host" to "https://npm.taobao.org/mirrors/sharp".
Done in 0.06s.
PS C:\Users\xxx-api> yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
yarn config v1.22.19
success Set "sharp_libvips_binary_host" to "https://npm.taobao.org/mirrors/sharp-libvips".
Done in 0.06s.
PS C:\Users\xxx-api> yarn add sharp
yarn add v1.22.19
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @strapi/strapi > koa-body > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer@3.12.0: This project is unmaintained
warning @strapi/strapi > @strapi/plugin-email > @strapi/provider-email-sendmail > sendmail > mailcomposer > buildmail@3.10.0: This project is unmaintained
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning @strapi/strapi > @strapi/generators > plop > liftoff > findup-sync > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-content-type-builder@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-email@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/strapi > @strapi/plugin-upload@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-dom@^17.0.1".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "react-router-dom@^5.2.0".
warning "@strapi/plugin-users-permissions > @strapi/design-system@1.6.6" has unmet peer dependency "styled-components@^5.2.1".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-helmet@6.1.0" has unmet peer dependency "react@>=16.3.0".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/icons@1.6.6" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning "@strapi/plugin-users-permissions > @strapi/helper-plugin@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning "@strapi/plugin-users-permissions > react-redux@8.0.5" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/plugin-users-permissions > react-intl@6.3.2" has unmet peer dependency "react@^16.6.0 || 17 || 18".
warning "@strapi/plugin-users-permissions > formik@2.2.9" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/plugin-users-permissions > react-query@3.24.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @floating-ui/react-dom@1.3.0" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @floating-ui/react-dom@1.3.0" has unmet peer dependency "react-dom@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@babel/runtime@>=7.11.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/state@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/theme-one-dark@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "codemirror@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "react@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror@4.19.11" has unmet peer dependency "react-dom@>=16.8.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @radix-ui/react-use-callback-ref@1.0.0" has unmet peer dependency "react@^16.8 || ^17.0 || ^18.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-helmet > react-side-effect@2.1.2" has unmet peer dependency "react@^16.3.0 || ^17.0.0 || ^18.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > react-redux > use-sync-external-store@1.2.0" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/autocomplete@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/language@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/lint@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/search@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > @uiw/codemirror-extensions-basic-setup@4.19.11" has unmet peer dependency "@codemirror/view@>=6.0.0".
warning "@strapi/strapi > @strapi/plugin-content-type-builder > @strapi/design-system > @uiw/react-codemirror > codemirror > @codemirror/autocomplete@6.4.2" has unmet peer dependency "@lezer/common@^1.0.0".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-users-permissions@4.9.0" has unmet peer dependency "styled-components@5.3.3".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-dom@^17.0.2".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "react-router-dom@5.3.4".
warning " > @strapi/plugin-i18n@4.9.0" has unmet peer dependency "styled-components@5.3.3".
[5/5] Building fresh packages...
[-/6] ⡀ waiting...
[6/6] ⡀ sharp
[3/6] ⡀ sharp
[-/6] ⢀ waiting...
error C:\Users\xxx-api\node_modules\@strapi\plugin-upload\node_modules\sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: C:\Users\xxx-api\node_modules\@strapi\plugin-upload\node_modules\sharp
Output:
PS C:\Users\xxx-api>>

解决方案:

    1. 使用靠靠谱的网络
    1. 在项目目录下配置.yarnrc(或者.npmrc文件)
registry "https://registry.npm.taobao.org"
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
phantomjs_cdnurl "http://cnpmjs.org/downloads"
electron_mirror "https://npm.taobao.org/mirrors/electron/"
sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/"
profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/"
chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver"
sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"

sharp: command failed.,前端必备,前端,javascript,npm

执行命令,成功安装

yarn install

sharp: command failed.,前端必备,前端,javascript,npm

今天就写到这里啦~
  • 小伙伴们,( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ我们明天再见啦~~
  • 大家要天天开心哦

欢迎大家指出文章需要改正之处~
学无止境,合作共赢

sharp: command failed.,前端必备,前端,javascript,npm文章来源地址https://www.toymoban.com/news/detail-804896.html

欢迎路过的小哥哥小姐姐们提出更好的意见哇~~

到了这里,关于解决前端安装sharp出错问题sharp: Command failed.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • rust编译出错:error: failed to run custom build command for `ring v0.16.20`

    安装 Visual Studio,确保选择 —.NET 桌面开发、使用 C++ 的桌面开发和通用 Windows 平台开发。 显示已安装的工具链 rustup show 。 然后通过运行更改和设置工具链 rustup default stable-x86_64-pc-windows-msvc 。 另外是想用clion进行调试rust 需要你按下面配置即可解决调试问题 前往| 设置 - 构

    2024年02月09日
    浏览(42)
  • 解决问题: Error: command failed: npm install --loglevel error --legacy-peer-deps

    在启动vue脚手架的时候,出现了一个错误: 在经过查询后 删除了 .npmrc文件并且修改了.vuerc文件 ,但是依然不起作用 再修改vuerc文件 将useTaobaoRegistry修改为false   后重装淘宝镜像 并且依然报错 清除npm缓存 依然不能起作用 通过了解 发现报错的原因是node.js安装在D盘,导致权

    2024年02月12日
    浏览(53)
  • vue node_modules\node-sass: Command failed. 安装失败,如何解决,使用 sass 替换

    package.json vue 项目中,安装依赖的时候出现错误,如下: package.json 中有个 node-sass 的包,在安装并编译这个的时候出现问题 node-sass 的主要功能是将 sass/scss - css ,跟 sass 的作用是一样的, sass 是 dart 语言写的, 直接用 sass 替换掉 node-sass 即可 在使用 vue create appName 创建 vue 项

    2024年02月03日
    浏览(46)
  • 【Git 教程系列第 27 篇】fatal: not in a git directory Error: Command failed with exit 128: git 问题的解决方案

    这是【Git 教程系列第 27 篇】,如果觉得有用的话,欢迎关注专栏。 一:问题描述 昨天通过 Homebrew 安装 protobuf 时,提示我 fatal: not in a git directory Error: Command failed with exit 128: git ,如下图所示 不要慌,写这篇博客问题肯定是解决了,在终端输入 brew -v 命令,如下图所示 可以

    2024年02月08日
    浏览(66)
  • node-sass 安装失败 Command failed 报错 node_modules\node-sass: Command failed. Exit code: 1

    通过 yarn install 安装依赖包 node-sass 时总是报错, 具体的错误原因为 当前使用的node版本与依赖的node-sass版本不匹配,调整当前node版本,建议使用nvm来控制node版本切换 具体对应关系如下: NodeJS Supported node-sass version Node Module Node 19 8.0+ 111 Node 18 8.0+ 108 Node 17 7.0+, 8.0 102 Node 16 6

    2024年02月04日
    浏览(48)
  • npm install 出现 npm ERR! command failed 解决办法

    本地使用npm install 时出现如下异常,可以看下本地是否安装过历史版本的node导致的版本冲突。 解决方案: 先将历史版本的 node 卸载,再重新安装后,再执行npm install  转自下面这篇文章 npm install 时 node-sass npm ERR command failed问题解决

    2024年02月12日
    浏览(58)
  • vue运行报错问题error Command failed with exit code 1.

    解决方法:治标不治本,每次运行前,先输入 再运行

    2024年02月11日
    浏览(46)
  • Command InvokationFailure: Unity Remote requirements check failed 的报错解决

    如果直接运行Unity 里的play出现以下报错 Command InvokationFailure: Unity Remote requirements check failed 解决办法:ProjectSetting中 Editor 里 Device 从AnyAndroidDevice 改为None  

    2024年02月12日
    浏览(44)
  • pycharm安装第三方库:Try to run this command from the system terminal. 问题解决

    PyCharm安装第三方依赖库报错:Try to run this command from the system terminal. 问题解决 PyCharm安装第三方库报错:Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘C:UserskrislongAppDataLocalProgramsPythonPython38python.e

    2024年02月12日
    浏览(40)
  • 解决XCode错误:Command PhaseScriptExecution failed with a nonzero exit code

    XCode版本:14.3 使用模拟器或真机调试、编译等都不出错,唯独在进行Archive时,会出现以下错误: 出错时的XCode截图如下: 展开XCode左侧的项目结构目录,逐级展开“Pods” - “Target Support Files” - \\\"Pods-项目名称\\\",打开其中的“Pods-项目名称-frameworks.sh”文件: 在该文件中,找

    2024年02月11日
    浏览(47)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包