草庐IT

SCMD_Install_Path

全部标签

npm install --legacy-peer-deps

问题:npm版本高无法解析依赖树导致依赖下载失败解决方法:执行npminstall--legacy-peer-deps依赖对等npminstallxxxx--legacy-peer-deps命令用于绕过peerDependency里依赖的自动安装;它告诉npm忽略项目中引入的各个依赖模块之间依赖相同但版本不同的问题,以npmv4-v6的方式去继续执行安装操作(默认使用npm4-6版本的安装模式,安装过程中会跳过对等依赖项)

npm install报错npm ERR! code ERESOLVE

1.npminstall报错npmERR!codeERESOLVE解决方法在npminstall后面加上–force或者–legacy-peer-depsnpminstall--legacy-peer-deps2.npminstall报错gypERR原因:node和npm版本不匹配解决方法1.首先去node官网查找对应版本node官网版本2查看自己电脑的node、npm版本,win+r打开cmd,输入:node-v我的node是v18.14.0npm-v我目前的npm版本是9.4.2,高啦高啦!应该改成对应的9.3.1npminstall-gnpm@9.3.1npminstall卸载原有的高版

npm install 长时间处于fetchMetadata: sill resolveWithNewModule

问题:使用npm安装时,过程长时间处于fetchMetadata:sillresolveWithNewModule状态:[ ...............]-fetchMetadata:sillresolveWithNewModulebase64-arraybuffer@1.0.2checkinginstallablestatus几个可能的原因处理:1、清除缓存npmcacheclean--force 2、换淘宝源npmconfigsetregistryhttps://registry.npm.taobao.org–配置后可通过下面方式来验证是否成功npmconfiggetregistry–或

npm install报错fatal: unable to access ‘https://github.com/nhn/raphael.git/‘: OpenSSL SSL_read 10054

报错信息:npmERR!E:\tools\Gitt\Git\cmd\git.EXEls-remote-h-thttps://github.com/nhn/raphael.gitnpmERR!npmERR!fatal:unabletoaccess'https://github.com/nhn/raphael.git/':OpenSSLSSL_read:Connectionwasreset,errno10054npmERR!npmERR!exitedwitherrorcode:128处理方法1.gitconfig--globalurl."https://".insteadOfgit://2.可能是

html - 防止 CSS clip-path 剪裁 child ?

有什么方法可以防止clip-path剪掉它的child吗?例如,考虑以下代码:.el{width:300px;height:300px;clip-path:polygon(50%0%,100%25%,100%75%,50%100%,0%75%,0%25%);background-color:orangered;}h1{position:relative;z-index:100;}WorkHard,PlayHardCodepen 最佳答案 考虑伪元素:.el{width:300px;height:300px;position:rela

html - 防止 CSS clip-path 剪裁 child ?

有什么方法可以防止clip-path剪掉它的child吗?例如,考虑以下代码:.el{width:300px;height:300px;clip-path:polygon(50%0%,100%25%,100%75%,50%100%,0%75%,0%25%);background-color:orangered;}h1{position:relative;z-index:100;}WorkHard,PlayHardCodepen 最佳答案 考虑伪元素:.el{width:300px;height:300px;position:rela

Install Stable Diffusion WebUI on Ubuntu 22.04.2 LTS

1.EnvironmentOS:Ubuntu22.04LTSKernel:5.15.0-60-genericCPU:Intel(R)Xeon(R)Gold6278CCPU@2.60GHz,8vCPUs GPU:1*NVIDIAV100-PCIe-32G RAM:64GBsystemdisk:512 GiBdatadisk: 2048 GiBStableDiffusionWebUIversion:0cc0ee1(2023/2/20)2.DownloadStableDiffusionmodelsGoto HuggingFace or Civitai tofindamodel.Usewgetcomm

Android ExternalStorage读写权限问题(Access to the path “/storage/emulated/0/...“ is denied)

现象:从android10.0开始,不管manifest里是否添加读写权限,都不可以直接访问内部存储路径为什么1、因为很多App在安装以后,会在/storage/emulated/0下随意创建各种文件/文件夹,导致手机内部存储目录十分混乱,而且app卸载以后,这些文件不会被卸载掉,遗留垃圾文件,造成空间浪费。2、可以修改其它App创建的文件,有数据安全问题…变更面对上述一些列问题,Google在Android10.0引入了ScopedStorage。1、App访问自身内部存储空间,这个与Android10.0之前一致2、外部存储空间,需要通过Uri访问(有兴趣的同学可以去查一查)回到本文的主题

Unable to make field private final java.lang.String java.io.File.path accessible: module java.base

问题描述:使用AndroidStudio运行应用时报错:Unabletomakefieldprivatefinaljava.lang.Stringjava.io.File.pathaccessible:modulejava.basedoesnot"opensjava.io"tounnamedmodule@7a4eb222 从报错信息可以看出跟Java模块化有关,先前都是用的JDK8而模块化是JDK9引入的新功能解决方法:经过检查发现升级了gradle7,使用的JDK17.真是一次大跳跃,不得不说Java这几年发版本真快。方法1:既然JDK17要模块化,那就跟项目指定一个不需要模块化得JDK8.

ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based

记录一下,安装aiohttp库出现的问题问题1:报两个错误,ERROR:FailedbuildingwheelforyarlFailedtobuildyarlERROR:Couldnotbuildwheelsforyarl,whichisrequiredtoinstallpyproject.toml-basedprojects解决方法:ERROR:Failedbuildingwheelforyarl,根据这个,安装需要的库yarl,用pipinstallyarl不行,下载whl,用下面的就行存档:PythonExtensionPackagesforWindows-ChristophGohlke