Win10离线安装choco方案

choco-slover安装 简单来说,jar包是对写好的类进行了打包。我们可以通过将jar包放到lib目录下来使用这些jar包中的类、属性和方法。专业解释,JAR文件是Java Archive File-java档案文件的简称,是与平台无关的文件格式,基于zip文件格式将许多文件合成一个压缩文件.jar,区别是比zip多了一个包含了一个 META-INF/MANIFEST.MF 文件,这个文件是在生成 JAR 文件的时候自动创建的。 阅读详情

问题描述

安装choco的时候,总是超时失败.


前置条件,下载必须的nupkg

https://packages.chocolatey.org/chocolatey.0.10.15.nupkg
下载chocolatey.0.10.15.nupkg,和下面的install.ps1脚本放在同一目录。


解决办法: 离线安装choco

参考: https://blog.csdn.net/sw3114/article/details/104299003
choco官方离线安装方案: https://docs.chocolatey.org/en-us/choco/setup


修改install.ps1脚本


修改第46行:
# 修改第46行的nupkg包路径
$localChocolateyPackageFilePath = 'nupkg包路径'

在这里插入图片描述


修改第277行:
# 第277行 Download-Package 这个注释掉
Download-Package $searchUrl $localChocolateyPackageFilePath

在这里插入图片描述


install.ps1脚本

install.ps1内容如下,将该脚本保存到本地,和chocolatey.0.10.15.nupkg文件放在同一目录。

# Download and install Chocolatey nupkg from an OData (HTTP/HTTPS) url such as Artifactory, Nexus, ProGet (all of these are recommended for organizational use), or Chocolatey.Server (great for smaller organizations and POCs)
# This is where you see the top level API - with xml to Packages - should look nearly the same as https://chocolatey.org/api/v2/
# If you are using Nexus, always add the trailing slash or it won't work
# === EDIT HERE ===
$packageRepo = '<INSERT ODATA REPO URL>'

# If the above $packageRepo repository requires authentication, add the username and password here. Otherwise these leave these as empty strings.
$repoUsername = ''    # this must be empty is NOT using authentication
$repoPassword = ''    # this must be empty if NOT using authentication

# Determine unzipping method
# 7zip is the most compatible, but you need an internally hosted 7za.exe.
# Make sure the version matches for the arguments as well.
# Built-in does not work with Server Core, but if you have PowerShell 5
# it uses Expand-Archive instead of COM
$unzipMethod = 'builtin'
#$unzipMethod = '7zip'
#$7zipUrl = 'https://chocolatey.org/7za.exe' (download this file, host internally, and update this to internal)

# === ENVIRONMENT VARIABLES YOU CAN SET ===
# Prior to running this script, in a PowerShell session, you can set the
# following environment variables and it will affect the output

# - $env:ChocolateyEnvironmentDebug = 'true' # see output
# - $env:chocolateyIgnoreProxy = 'true' # ignore proxy
# - $env:chocolateyProxyLocation = '' # explicit proxy
# - $env:chocolateyProxyUser = '' # explicit proxy user name (optional)
# - $env:chocolateyProxyPassword = '' # explicit proxy password (optional)

# === NO NEED TO EDIT ANYTHING BELOW THIS LINE ===
# Ensure we can run everything
Set-ExecutionPolicy Bypass -Scope Process -Force;

# If the repository requires authentication, create the Credential object
if ((-not [string]::IsNullOrEmpty($repoUsername)) -and (-not [string]::IsNullOrEmpty($repoPassword))) {
    $securePassword = ConvertTo-SecureString $repoPassword -AsPlainText -Force
    $repoCreds = New-Object System.Management.Automation.PSCredential ($repoUsername, $securePassword)
}

$searchUrl = ($packageRepo.Trim('/'), 'Packages()?$filter=(Id%20eq%20%27chocolatey%27)%20and%20IsLatestVersion') -join '/'

# Reroute TEMP to a local location
New-Item $env:ALLUSERSPROFILE\choco-cache -ItemType Directory -Force
$env:TEMP = "$env:ALLUSERSPROFILE\choco-cache"
# 46行的变量值携程nupkg的路径,用单引号括起来
$localChocolateyPackageFilePath = 'E:\Downloads\choco\chocolatey.0.10.15.nupkg'
$ChocoInstallPath = "$($env:SystemDrive)\ProgramData\Chocolatey\bin"
$env:ChocolateyInstall = "$($env:SystemDrive)\ProgramData\Chocolatey"
$env:Path += ";$ChocoInstallPath"
$DebugPreference = 'Continue';

# PowerShell v2/3 caches the output stream. Then it throws errors due
# to the FileStream not being what is expected. Fixes "The OS handle's
# position is not what FileStream expected. Do not use a handle
# simultaneously in one FileStream and in Win32 code or another
# FileStream."
function Fix-PowerShellOutputRedirectionBug {
  $poshMajorVerion = $PSVersionTable.PSVersion.Major

  if ($poshMajorVerion -lt 4) {
    try{
      # http://www.leeholmes.com/blog/2008/07/30/workaround-the-os-handles-position-is-not-what-filestream-expected/ plus comments
      $bindingFlags = [Reflection.BindingFlags] "Instance,NonPublic,GetField"
      $objectRef = $host.GetType().GetField("externalHostRef", $bindingFlags).GetValue($host)
      $bindingFlags = [Reflection.BindingFlags] "Instance,NonPublic,GetProperty"
      $consoleHost = $objectRef.GetType().GetProperty("Value", $bindingFlags).GetValue($objectRef, @())
      [void] $consoleHost.GetType().GetProperty("IsStandardOutputRedirected", $bindingFlags).GetValue($consoleHost, @())
      $bindingFlags = [Reflection.BindingFlags] "Instance,NonPublic,GetField"
      $field = $consoleHost.GetType().GetField("standardOutputWriter", $bindingFlags)
      $field.SetValue($consoleHost, [Console]::Out)
      [void] $consoleHost.GetType().GetProperty("IsStandardErrorRedirected", $bindingFlags).GetValue($consoleHost, @())
      $field2 = $consoleHost.GetType().GetField("standardErrorWriter", $bindingFlags)
      $field2.SetValue($consoleHost, [Console]::Error)
    } catch {
      Write-Output 'Unable to apply redirection fix.'
    }
  }
}

Fix-PowerShellOutputRedirectionBug

# Attempt to set highest encryption available for SecurityProtocol.
# PowerShell will not set this by default (until maybe .NET 4.6.x). This
# will typically produce a message for PowerShell v2 (just an info
# message though)
try {
  # Set TLS 1.2 (3072), then TLS 1.1 (768), then TLS 1.0 (192), finally SSL 3.0 (48)
  # Use integers because the enumeration values for TLS 1.2 and TLS 1.1 won't
  # exist in .NET 4.0, even though they are addressable if .NET 4.5+ is
  # installed (.NET 4.5 is an in-place upgrade).
  [System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor 768 -bor 192 -bor 48
} catch {
  Write-Output 'Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed or trust errors, you may need to upgrade to .NET Framework 4.5+ and PowerShell v3+.'
}

function Get-Downloader {
param (
  [string]$url
 )
  $downloader = new-object System.Net.WebClient

  $defaultCreds = [System.Net.CredentialCache]::DefaultCredentials
  if (Test-Path -Path variable:repoCreds) {
    Write-Debug "Using provided repository authentication credentials."
    $downloader.Credentials = $repoCreds
  } elseif ($defaultCreds -ne $null) {
    Write-Debug "Using default repository authentication credentials."
    $downloader.Credentials = $defaultCreds
  }

  $ignoreProxy = $env:chocolateyIgnoreProxy
  if ($ignoreProxy -ne $null -and $ignoreProxy -eq 'true') {
    Write-Debug 'Explicitly bypassing proxy due to user environment variable.'
    $downloader.Proxy = [System.Net.GlobalProxySelection]::GetEmptyWebProxy()
  } else {
    # check if a proxy is required
    $explicitProxy = $env:chocolateyProxyLocation
    $explicitProxyUser = $env:chocolateyProxyUser
    $explicitProxyPassword = $env:chocolateyProxyPassword
    if ($explicitProxy -ne $null -and $explicitProxy -ne '') {
      # explicit proxy
      $proxy = New-Object System.Net.WebProxy($explicitProxy, $true)
      if ($explicitProxyPassword -ne $null -and $explicitProxyPassword -ne '') {
        $passwd = ConvertTo-SecureString $explicitProxyPassword -AsPlainText -Force
        $proxy.Credentials = New-Object System.Management.Automation.PSCredential ($explicitProxyUser, $passwd)
      }

      Write-Debug "Using explicit proxy server '$explicitProxy'."
      $downloader.Proxy = $proxy

    } elseif (!$downloader.Proxy.IsBypassed($url)) {
      # system proxy (pass through)
      $creds = $defaultCreds
      if ($creds -eq $null) {
        Write-Debug 'Default credentials were null. Attempting backup method'
        $cred = get-credential
        $creds = $cred.GetNetworkCredential();
      }

      $proxyaddress = $downloader.Proxy.GetProxy($url).Authority
      Write-Debug "Using system proxy server '$proxyaddress'."
      $proxy = New-Object System.Net.WebProxy($proxyaddress)
      $proxy.Credentials = $creds
      $downloader.Proxy = $proxy
    }
  }

  return $downloader
}

function Download-File {
param (
  [string]$url,
  [string]$file
 )
  $downloader = Get-Downloader $url
  $downloader.DownloadFile($url, $file)
}

function Download-Package {
param (
  [string]$packageODataSearchUrl,
  [string]$file
 )
  $downloader = Get-Downloader $packageODataSearchUrl

  Write-Output "Querying latest package from $packageODataSearchUrl"
  [xml]$pkg = $downloader.DownloadString($packageODataSearchUrl)
  $packageDownloadUrl = $pkg.feed.entry.content.src

  Write-Output "Downloading $packageDownloadUrl to $file"
  $downloader.DownloadFile($packageDownloadUrl, $file)
}

function Install-ChocolateyFromPackage {
param (
  [string]$chocolateyPackageFilePath = ''
)

  if ($chocolateyPackageFilePath -eq $null -or $chocolateyPackageFilePath -eq '') {
    throw "You must specify a local package to run the local install."
  }

  if (!(Test-Path($chocolateyPackageFilePath))) {
    throw "No file exists at $chocolateyPackageFilePath"
  }

  $chocTempDir = Join-Path $env:TEMP "chocolatey"
  $tempDir = Join-Path $chocTempDir "chocInstall"
  if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)}
  $file = Join-Path $tempDir "chocolatey.zip"
  Copy-Item $chocolateyPackageFilePath $file -Force

  # unzip the package
  Write-Output "Extracting $file to $tempDir..."
  if ($unzipMethod -eq '7zip') {
    $7zaExe = Join-Path $tempDir '7za.exe'
    if (-Not (Test-Path ($7zaExe))) {
      Write-Output 'Downloading 7-Zip commandline tool prior to extraction.'
      # download 7zip
      Download-File $7zipUrl "$7zaExe"
    }

    $params = "x -o`"$tempDir`" -bd -y `"$file`""
    # use more robust Process as compared to Start-Process -Wait (which doesn't
    # wait for the process to finish in PowerShell v3)
    $process = New-Object System.Diagnostics.Process
    $process.StartInfo = New-Object System.Diagnostics.ProcessStartInfo($7zaExe, $params)
    $process.StartInfo.RedirectStandardOutput = $true
    $process.StartInfo.UseShellExecute = $false
    $process.StartInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Hidden
    $process.Start() | Out-Null
    $process.BeginOutputReadLine()
    $process.WaitForExit()
    $exitCode = $process.ExitCode
    $process.Dispose()

    $errorMessage = "Unable to unzip package using 7zip. Perhaps try setting `$env:chocolateyUseWindowsCompression = 'true' and call install again. Error:"
    switch ($exitCode) {
      0 { break }
      1 { throw "$errorMessage Some files could not be extracted" }
      2 { throw "$errorMessage 7-Zip encountered a fatal error while extracting the files" }
      7 { throw "$errorMessage 7-Zip command line error" }
      8 { throw "$errorMessage 7-Zip out of memory" }
      255 { throw "$errorMessage Extraction cancelled by the user" }
      default { throw "$errorMessage 7-Zip signalled an unknown error (code $exitCode)" }
    }
  } else {
    if ($PSVersionTable.PSVersion.Major -lt 5) {
      try {
        $shellApplication = new-object -com shell.application
        $zipPackage = $shellApplication.NameSpace($file)
        $destinationFolder = $shellApplication.NameSpace($tempDir)
        $destinationFolder.CopyHere($zipPackage.Items(),0x10)
      } catch {
        throw "Unable to unzip package using built-in compression. Set `$env:chocolateyUseWindowsCompression = 'false' and call install again to use 7zip to unzip. Error: `n $_"
      }
    } else {
      Expand-Archive -Path "$file" -DestinationPath "$tempDir" -Force
    }
  }

  # Call Chocolatey install
  Write-Output 'Installing chocolatey on this machine'
  $toolsFolder = Join-Path $tempDir "tools"
  $chocInstallPS1 = Join-Path $toolsFolder "chocolateyInstall.ps1"

  & $chocInstallPS1

  Write-Output 'Ensuring chocolatey commands are on the path'
  $chocInstallVariableName = 'ChocolateyInstall'
  $chocoPath = [Environment]::GetEnvironmentVariable($chocInstallVariableName)
  if ($chocoPath -eq $null -or $chocoPath -eq '') {
    $chocoPath = 'C:\ProgramData\Chocolatey'
  }

  $chocoExePath = Join-Path $chocoPath 'bin'

  if ($($env:Path).ToLower().Contains($($chocoExePath).ToLower()) -eq $false) {
    $env:Path = [Environment]::GetEnvironmentVariable('Path',[System.EnvironmentVariableTarget]::Machine);
  }

  Write-Output 'Ensuring chocolatey.nupkg is in the lib folder'
  $chocoPkgDir = Join-Path $chocoPath 'lib\chocolatey'
  $nupkg = Join-Path $chocoPkgDir 'chocolatey.nupkg'
  if (!(Test-Path $nupkg)) {
    Write-Output 'Copying chocolatey.nupkg is in the lib folder'
    if (![System.IO.Directory]::Exists($chocoPkgDir)) { [System.IO.Directory]::CreateDirectory($chocoPkgDir); }
    Copy-Item "$file" "$nupkg" -Force -ErrorAction SilentlyContinue
  }
}

# Idempotence - do not install Chocolatey if it is already installed
if (!(Test-Path $ChocoInstallPath)) {
  # download the package to the local path
  if (!(Test-Path $localChocolateyPackageFilePath)) {
    # 277行 Download-Package 这个注释掉
    # Download-Package $searchUrl $localChocolateyPackageFilePath
  }

  # Install Chocolatey
  Install-ChocolateyFromPackage $localChocolateyPackageFilePath
}

powersell开启信任脚本策略

# 开启信任脚本策略
set-ExecutionPolicy RemoteSigned

以管理员powershell执行安装脚本

# 进入脚本所在目录
cd D:\Choco脚本所在目录

# 执行安装脚本
iex install.ps1

结果验证

# 查看choco版本
choco -v

在这里插入图片描述

将Windows Terminal 添加到右键菜单,使用 Scoop 安装 使用 Scoop 安装 Windows Terminal 并将其添加到右键菜单 阅读详情

相关推荐

win10离线安装ros-melodic-desktop_full

在线安装最容易出现安装包下载不了导致的安装失败问题。本篇文章续上篇在线安装: 安装在线包 下载ros-melodic-desktop_full,下载地址: ros-melodic离线包下载地址 开始菜单中,右键 “x64 Native Tools Command Prompt for VS 2019” ,以管理员身份运行。 修改安装包搜索优先级,如图所示,是下载的nupkg文件所在的文件夹地址。 choco source add -n=ros-win -s=“E:\roswininstall” choc.

AmyMonkey的博客 2749

Windows使用choco包管理器

Windows安装choco包管理器

教Linux的李老师 1万+

告别编译噩梦:在Win10上高效搭建CARLA 0.9.13仿真环境的保姆级配置清单

本文提供了一份在Windows10上高效搭建CARLA 0.9.13仿真环境的详细配置指南,涵盖环境规划、Python配置、工具链整合、Unreal Engine编译和CARLA构建等关键步骤。通过模块化设计和优化技巧,帮助开发者告别源码编译噩梦,快速构建稳定的自动驾驶仿真平台。

weixin_30673611的博客 450

Windows安装 choco

Windows安装 choco包管理工具,可用choco升级dart版本

qq690452074的专栏 5118

MATLAB R2026a 离线安装指南:3种镜像文件(ISO/DMG)与虚拟光驱选择

本文详细介绍了MATLAB R2026a的离线安装流程,涵盖Windows、macOS和Linux三大平台的镜像文件获取、虚拟光驱选择及安装步骤。重点解析了ISO/DMG镜像文件的验证方法、许可证配置技巧以及常见问题的解决方案,帮助用户在无网络环境下高效部署MATLAB。

weixin_33984032的博客 1093

Win10专业工作站版极简一键重装与自动化部署教程

操作系统自动化部署是现代IT运维中的关键技术,通过应答文件和脚本技术实现系统安装过程的无人值守操作。其核心原理是利用预配置的XML应答文件定义安装参数,结合PowerShell脚本控制安装流程,从而大幅提升部署效率。这种技术在批量部署、系统恢复和开发环境搭建等场景具有重要价值,特别适合需要高性能计算的Windows 10专业工作站版。专业工作站版支持ReFS文件系统和卓越性能模式等高级功能,通过极简一键重装方案,用户可以快速完成系统部署并优化硬件性能。该方案融合了自动化安装和性能调优,为开发人员和专业用户提

441

win10上安装kubectl工具

前言 为了方便在win10系统上,对k8s资源进行操作查看等,满足我们对其的日常操作需求,需要安装kubectl工具 安装使用 使用choco工具安装kubectl 命令行 choco install kubernetes-cli 以管理员身份运行"命令提示符(cmd)" C:\Users\nature>choco install kubernetes-cli 配置kubeconfig文件 在win10用户目录下新建.kube文件夹,并进入文件夹下,用编辑器创建config文件,将阿里云上或者自

weixin_42715225的博客 2538

Codex桌面版安装指南:绕过微软商店的三种安全部署方案

Codex 是一款基于大语言模型的本地代码补全工具,其桌面客户端并非微软官方应用,也不上架 Microsoft Store。理解这一基本事实是成功部署的前提——它本质上是一个 Electron 封装的独立桌面程序,依赖 Node.js 运行时与本地推理服务(如 Ollama),安装逻辑遵循标准 Windows 文件分发范式,而非 AppX/MSIX 应用商店体系。技术价值在于实现离线、可控、可审计的 AI 编程辅助能力;典型应用场景包括开发者本地环境快速搭建、企业内网批量部署、老旧设备兼容性适配等。本文聚焦

weixin_30613727的博客 1092

win10安装Bazel

这是了解Google的机器学习的第一步,作为安卓开发多少需要了解机器学习的东西。 谷歌的构建工具Bazel,它是TensorFlow的首席构建工具。 废话不多说,安装教程: 1.安装choco(chocolatey是windows下的一个命令行的包管理工具,类似ubuntu的apt,或centos下的yum。) powershell安装指令:(右击管理员运行) Set-Executio...

Zachary的基地 4667

Neo4j Desktop 1.4.9 安装避坑:Windows 10/11 解决 3 类常见启动报错

本文详细解析了Neo4j Desktop 1.4.9在Windows 10/11系统下的三大常见启动报错,包括权限错误、网络卡顿和数据库不可用问题,提供了多种解决方案和深度技术分析,帮助用户顺利安装和使用这款图数据库工具。

weixin_34221775的博客 416

Windows 10专业工作站版极简一键重装方案详解

操作系统重装是计算机维护中的基础技术,其原理是通过自动化脚本和预配置应答文件实现系统部署的无人值守安装。这种技术价值在于大幅降低系统部署的技术门槛,提升部署效率,特别适用于快速系统恢复、批量设备部署等应用场景。Windows 10专业工作站版作为微软面向高性能计算需求的系统版本,支持卓越性能模式和持久内存等高级特性。通过极简一键重装方案,用户可以实现从启动到安装完成的全自动化流程,无需手动干预BIOS设置、分区格式化和驱动安装等复杂操作。该方案特别适合系统快速部署、老旧系统重置等需求,结合PE环境和自动化脚

weixin_30443813的博客 453

Win10系统和子系统Ubuntu16.04 安装 ros

1、添加ROS软件源(sources.list) sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 2、添加密钥 sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD...

jacke121的专栏 2083

Windows 10 部署 ROS2 全攻略:从 Foxy 到 Humble 的在线与离线实战指南

本文详细介绍了在Windows 10系统上部署ROS2的完整指南,涵盖Foxy和Humble两个主流版本,提供在线与离线两种安装方式。针对网络不稳定环境,特别分享了离线安装ROS2的实用技巧,帮助开发者克服依赖下载失败等常见问题,实现高效的机器人开发环境搭建。

weixin_27134495的博客 184

pyenv-win 完整安装指南:五种安装方式、环境变量配置与 Git BASH/32 位版本切换实战

pyenv-win 是 pyenv 的 Windows 移植版,用于在一台 Windows 机器上轻松管理、切换多个 Python 版本。本文以 [docs/installation.md](https://link.gitcode.com/i/fe85104cfed650121fa1a58af91dbe17) 为骨架,完整覆盖其提供的全部安装路径(PowerShell 一键安装、Git 克隆、z

gitblog_00915的博客 799

OPENCLAW Windows10源码安装全指南:具身智能体硬件控制实战

具身智能(Embodied AI)是让大语言模型具备物理世界交互能力的关键范式,其核心在于将LLM生成的语义指令实时转化为底层硬件输入事件。OPENCLAW作为开源具身智能体框架,通过VIGEM虚拟手柄驱动与Windows内核深度协同,构建从token到系统级SendInput的完整链路。该方案突破传统AI助手的UI层模拟局限,支持可审计、可回放、可调试的全路径操作复现,广泛应用于自动化测试、游戏辅助开发及无障碍交互系统。本文聚焦Windows 10平台,详解源码安装中驱动签名、Python架构对齐、C++

cique2620的博客 439

Windows 安装 choco(Chocolatey)教程

本文介绍了在Windows系统上使用PowerShell安装Chocolatey包管理器的步骤。首先以管理员身份打开PowerShell,然后执行安装命令,该命令会设置执行策略并下载安装脚本。安装完成后,可通过"choco -v"命令验证安装是否成功。整个过程简单快捷,适合需要快速部署软件包管理工具的用户。

猿小白的博客 597

WinUtil终极指南:免费Windows系统管理工具箱,一键解决安装、优化、修复三大难题

你是否厌倦了Windows系统的繁琐管理?每次重装系统都要花费数小时安装软件?系统变慢却不知从何优化?Chris Titus Tech WinUtil正是为你量身打造的开源Windows系统管理工具,集成了软件安装、系统优化、故障修复和更新管理四大核心功能,让Windows系统管理变得前所未有的简单高效。这个免费的Windows优化工具能够帮助你一键完成系统维护,节省大量时间和精力。 ## 🚀

gitblog_00133的博客 670

告别死记硬背!用业务场景驱动理解SAP PS OPSA参数文件配置

本文通过制造业新产品研发项目案例,详细解析SAP PS模块中OPSA参数文件配置的实际应用。从项目立项、WBS分解到研发物料管理,系统讲解关键配置项的业务价值,帮助用户告别死记硬背,实现业务场景驱动的参数配置学习。特别适合制造业项目管理人员提升SAP PS配置效率。

weixin_30415113的博客 483

10分钟搞定Windows系统优化:WinUtil一站式解决方案

你是否曾经为新电脑安装软件而烦恼?是否觉得Windows系统越用越慢却不知如何优化?是否担心系统调整会带来风险?今天,我要为你介绍一个改变Windows使用体验的开源工具——WinUtil,它能帮你一站式解决软件安装、系统优化、故障修复和更新管理等问题。 --- ## 问题:Windows系统管理的三大痛点 ### 1. 软件安装的繁琐流程 每次重装系统或拿到新电脑,都要花费数小时安装各种软

gitblog_00015的博客 948

OpenClaw安装方式那么多,但建议大家还是用云厂商吧

OpenCloud的安装方式多样,包括One-liner、npm、pnpm和Hackable等。One-liner提供高效的单行命令安装;npm和pnpm作为Node.js包管理工具,分别提供常规和高性能的安装选项;Hackable则支持定制化安装。不同系统(macOS、Windows)和终端(PowerShell、CMD)的操作步骤各有特点,用户需根据自身技术背景选择合适的安装方式。官方推荐使用闲置计算资源或云部署方案以获得更佳体验。

涛涛讲AI 1405

从按键开机到I2C隔离:手把手拆解一个智能硬件项目里的MOS管实战配置

本文详细解析了智能硬件项目中MOS管的实战配置,从按键开机电路到I2C总线隔离,全面覆盖电源管理和信号隔离的关键技术。通过PMOS+NMOS组合方案实现可靠的开机功能,并采用双NMOS方案优化I2C通信隔离,提升系统稳定性和信号质量。

weixin_28691741的博客 333
上一篇: rpm包管理器常见用法
下一篇: chrome常用启动参数
教Linux的李老师
博客等级 码龄18年 847粉丝 708原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

教Linux的李老师

您的赞赏,是我深夜码字时最亮的

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值