Coder Social home page Coder Social logo

install err about capacitor-assets HOT 2 CLOSED

ionic-team avatar ionic-team commented on May 10, 2024
install err

from capacitor-assets.

Comments (2)

passwhl avatar passwhl commented on May 10, 2024 2

cordova-res依赖sharp sharp使用到libvips libvips需要使用node-gyp现场编译源码安装
一,libvips从github下载问题
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-win32-x64.tar.gz
ERR! sharp getaddrinfo ENOENT github-production-release-asset-2e65be.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com:443
解决:
1.使用 npm config get chache查看node缓存目录
2.手动下载https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-win32-x64.tar.gz
3.放在node缓存目录下的_libvips
二,node-gyp.js问题
1.npm install -g node-gyp
2.npm config set node_gyp "node 您的npm安装目录\node_modules\node-gyp\bin\node-gyp.js"
三,node-gyp在win10上使用提示找不到visual studio什么的
执行npm i -g windows-build-tools
会重启多次
然后执行npm i cordova-res

from capacitor-assets.

Carrie0908 avatar Carrie0908 commented on May 10, 2024

您好,请问一下是直接不更新ionic/cli,直接安装cordova-res吗

from capacitor-assets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.