首页 > 系统相关 >PowerShell pnpm 报错

PowerShell pnpm 报错

时间:2023-11-16 20:46:41浏览次数:38  
标签:node global nodejs pnpm 报错 ExecutionPolicy PowerShell

Vue3> pnpm run dev
pnpm : 无法加载文件 D:\program files\nodejs\node_global\pnpm.ps1。未对文件 D:\program files\nodejs\node_global\pnpm.ps1 进行数字签名。无法在当前系统上运行该脚本。有关运行脚本和设置执行策略的详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ pnpm run dev
+ ~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

 

1、控制台运行命令set-ExecutionPolicy RemoteSigned
2、vsCode还报该错误
输入运行命令Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

标签:node,global,nodejs,pnpm,报错,ExecutionPolicy,PowerShell
From: https://www.cnblogs.com/beichengshiqiao/p/17837222.html

相关文章

  • mac 下使用 brew 安装包报错 error: Cannot install under Rosetta 2 in ARM default
    mac下使用brew安装包报错error:CannotinstallunderRosetta2inARMdefaultprefix(/opt/homebrew)!TorerununderARMuse:arch-arm64brewinstall...Toinstallunderx86_64,installHomebrewinto/usr/local.解决办法:arch-arm64brewinstallxxx......
  • 【达梦8大小版本更换后适配flowable6.8报错Error initialising eventregistry data mo
    达梦8大小版本更换后适配flowable6.8报错问题背景:当前代码使用达梦8并适配了flowable6.8工作流,在达梦8小版本2021版更新到达梦8小版本2023后出现报错,报错如下:-Applicationrunfailedorg.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbea......
  • 使用MobaTextEditor编辑的代码在linux上运行报错
    在windows上通过ssh登录linux节点处理数据,使用MobaTextEditor编辑shell脚本后,在linux上运行总是报错找不到路径 报错 其根本原因是windows下每一行的结尾符是\n\r,而linux下是\n,所以windows下编写的shell脚本拷贝到linux下时会多一个\r,在运行时会乱码在运行前通过以下命令......
  • Fiddler not intercepting PowerShell web requests
    FiddlernotinterceptingPowerShellwebrequestsFiddleractuallyworksviaaproxy,andautomaticallysetsproxysettingsinIEwhenrunning.Youcancheckthisbylaunchingfiddlerandthenchecking"LanSettings"underInternetOptions>......
  • git clone报错SSL connect error
    解决CentOS6.6上Git操作引发的SSL连接错误问题最近在处理一个CentOS6.6服务器上的问题时,遇到了一个比较棘手的问题。我的小伙伴在操作Git时,发现无法执行gitpull命令,提示找不到Git组件。在这篇文章中,我会详细介绍我们是如何定位和解决这个问题的。问题描述在一个已经很久没有......
  • 解决执行pytest -vs test.py报错问题
    报错如下:解决方案:在终端中执行python-mpytest+后面你想运行的命令,如下:python-mpytesttest.py......
  • mysql链接不上3306报错10060
    1、控制台进入查看防火墙(前提mysql我的端口是3306,现在大部分人已经不用3306了)firewall-cmd--zone=public--list-ports(查看3306端口是否开启,如果没见到3306端口)2、添加3306firewall-cmd--zone=public--add-port=3306/tcp--parmanent3、如上添加成功了,最重要的一点来......
  • SAP调用外部的REST服务 http_communication_failure Connection to partner timed
    SAP中主动调用外部的REST服务时候, 因为传输的数据量比较大, 所以报Connectiontopartnertimedoutafter60 这一错误,原因之一可能是Tcode-SMICM ->转到->服务设置保活和处理超时时间,秒为单位,可以更具自己的需求进行设置。......
  • git 报错。
    在下载的 linux的源码上进行gitinit的时候报错。  fatal:Invalidpath'/home/topeet/source_code/xikejiqiren/3588-linux/.repo':Nosuchfileordirectory 这是可能的原因。  ......
  • docker使用--gpus all报错: docker: Error response from daemon: could not select d
    报错信息:docker:Errorresponsefromdaemon:couldnotselectdevicedriver""withcapabilities:[[gpu]].解决方法:1,任意路径下创建nvidia-container-runtime-script.sh文件vimnvidia-container-runtime-script.sh拷贝下方内容到nvidia-container-runtime-script.......