首页 > 其他分享 >npm install时一直idealTree:npm: sill idealTree buildDeps的解决方案

npm install时一直idealTree:npm: sill idealTree buildDeps的解决方案

时间:2024-09-03 19:51:42浏览次数:5  
标签:npm set yarn 命令 registry install config idealTree

修改下镜像的地址。
1、采用新的镜像地址,进入cmd之后输入:

// 1. npm的命令
npm config set registry https://registry.npmmirror.com
// 2. yarn的命令
yarn config set registry https://registry.npmmirror.com

2、查看是否安装成功:

//  npm的命令
npm config get registry 
//  yarn的命令
yarn config get registry

如果出现刚才的地址就是切换成功,就可以使用npm 或者 yarn 下载依赖了。

标签:npm,set,yarn,命令,registry,install,config,idealTree
From: https://blog.csdn.net/m0_50736744/article/details/141866887

相关文章

  • 调用azure的npm实现outlook_api模拟查看邮件、发送邮件(实现web版接受outlook邮件第一
    文章目录⭐前言⭐注册azure应用......
  • 运维系列&AI系列&Lenovo-G双系统系列(前传-装之前搜索的):Scrapy爬虫的打包Auto-py-to-ex
    Scrapy爬虫的打包Auto-py-to-exe/PyinstallScrapy爬虫的打包Auto-py-to-exe/Pyinstall前言步骤Scrapy代码部分1.系统调用方案2.API启动方案auto-py-to-exe部分1.安装2.配置1.将基础的目录配置进去,包括`spiders`的上级目录,和对应的库文件2.把对应的python环境库文......
  • Python Poetry fails to add openai-whisper due to triton installation error
    题意:PythonPoetry因Triton安装错误而无法添加openai-whisper。问题背景:soimtryingtouseopenai-whisper.i'musingpoetryasmyenvanddependecymanager.butkeepgettingerrorswhentryingtodownloadit.theerrorigetis,Installingtriton(2.0.......
  • pip install METIS
    python的包METIS需要在本地安装METIS,METIS本身又是依赖GKlib的,所以需要首先编译GKlib,然后编译METIS编译GKlibmakeconfigCONFIG_FLAGS='-DBUILD_SHARED_LIBS=ON-DCMAKE_INSTALL_PREFIX=/home/hongyu_gao2001/GKlib'编译METISmakeconfigshared=1cc=gccprefi......
  • pip install gdal 在Windows系统上安装gdal
     django.core.exceptions.ImproperlyConfigured:CouldnotfindtheGDALlibrary(tried"gdal302","gdal301","gdal300","gdal204","gdal203","gdal202","gdal201","gdal20").Is......
  • 解决创建VUE项目的时候执行npm install一直是loading状态
    创建VUE项目的时候执行命令npmcreatevue@latestnpminstall然后一直是处于loading状态配置npm代理,切换至国内镜像源先查看当前的镜像源:npmconfiggetregistry直接访问NPM官方仓库(registry.npmjs.org)可能速度较慢甚至不稳定。这时,切换至国内高速npm镜像源。​​​......
  • 使用 pnpm workspace 和 standalone 模式构建 Next.js 的 Docker 镜像
    引言本文将探讨如何利用pnpmworkspace和standalone模式来构建Next.js应用程序的轻量级Docker镜像。这种方法通过仅在node_modules目录中包含必要的文件,显著减少了最终Docker镜像的大小。Standalone模式简介通常情况下,所有在dependencies中列出的包都会......
  • yum install epel-release, except KeyboardInterrupt, e:, SyntaxError: invalid syn
     yuminstallepel-release File"/usr/bin/yum",line30   exceptKeyboardInterrupt,e:                           ^SyntaxError:invalidsyntax问题原因:由于yum包管理是使用python2写的,由于python3与python2不兼容导致出......
  • npm 设置代理
    目录 前言一、查看npm配置二、设置代理三、删除代理四、代理认证往期回顾 前言在使用npm时,如果您处于需要使用代理的网络环境中,您可以通过配置npm来设置代理。一、查看npm配置npmconfiglist或者单独查看npmconfiggetproxynpmconfiggethttps-prox......
  • 一种PyInstaller中优雅的控制包大小的方法
    PyInstaller会在打包时自动为我们收集一些依赖项,特别是我们在打包PyQt/PySide相关的应用时,PyInstaller会自动包含我们程序通常不需要的文件,如'tanslations'文件夹,'plugins/imageformats'等,通常这些文件会使我们最终的exe文件变大。在网上没有找任何好的方法来排除这些文件,从这个Is......