首页 > 编程语言 >vscode报错,nodemon 在此系统上禁止运行脚本

vscode报错,nodemon 在此系统上禁止运行脚本

时间:2024-02-26 12:00:19浏览次数:26  
标签:脚本 禁止 vscode nodemon 报错 RemoteSigned

1.vscode报错,nodemon :因为在此系统上禁止运行脚本

注意:不仅仅适用于nodemon报错,报在此系统上禁止运行脚本的错都可以用以下方法解决

2.报错原因分析:windows 为了安全,默认的执行策略为 Restricted,因此需要将执行策略设置为 RemoteSigned 即可

3.解决方法

    (1) get-executionpolicy

     如果你电脑显示是RomoteSigned,那就不用改了

    如果不是,往下看 

   (2)修改执行策略为RemoteSigned

      set-ExecutionPolicy RemoteSigned

    (3)get-executionpolicy  返回 RemoteSigned  验证修改成功。

标签:脚本,禁止,vscode,nodemon,报错,RemoteSigned
From: https://www.cnblogs.com/dongtian/p/18033985

相关文章

  • Jenkins下载插件报错
    只要看日志报了什么错下载超时更新代理源https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json报unabletofindvalidcertificationpathtorequestedtarget需要ssl认证,两种解决办法跳过ssl检查https://mirrors.tuna.tsinghua.edu.cn/jenkin......
  • idea 报错 Directory '/Users/codes/other/tool-box/tool-box' does not contain a Gr
    idea报错Directory'/Users/codes/other/tool-box/tool-box'doesnotcontainaGradlebuild. Gradlebuild时提示IDEAThespecifiedprojectxxxxdirectorydoesnotexist.前提因为我之前想自己开发一个将sql文件格式化的插件,中途放弃直接用程序写完了,插件开发时用的......
  • vscode格式
    ctr+shift+P  搜settings.json {"security.workspace.trust.untrustedFiles":"open","vetur.format.options.tabSize":4,"vetur.format.defaultFormatterOptions":{"prettier":{......
  • Docker-常见报错和解决办法
    1、问题1: error:RPCfailed;result=18,HTTPcode=200MiB|181.00KiB/s##gitclonehttps://github.com/apache/doris.gitCloninginto'doris'...remote:Enumeratingobjects:505750,done.remote:Countingobjects:100%(30319/30319),done.remote:C......
  • EasyBlogImageForTypora 上传报错,重新配置
    EasyBlogImageForTypora上传报错,重新配置先前使用EasyBlogImageForTypora上传图片正常,但是最近报错了(先前没弄明白报错原因,下载了项目代码,手动进行了调试)。上传图片接口服务器方法如下:查看VS监视结果发现:此时突然发现UserName与Password应该保持一致,是WebLogApi的参数,于......
  • conda报错、anconda报错:requests.exceptions.JSONDecodeError: Expecting value: line
    anconda报错,报错信息:requests.exceptions.JSONDecodeError:Expectingvalue:line1column1(char0)不能使用conda新建环境和安装library库,网上搜索相关问题后发现是之前配置的第三方源地址出现了问题。解决方法:shell中输入命令:condaconfig--remove-keychannels......
  • 解决nvidia-smi报错:NVIDIA-SMI has failed because it couldn‘t communicate with th
    昨天一切正常,今天ubuntu启动突然卡住了,一直停在黑屏光标界面。在网上看到原因可能和nvidia驱动有关。输入nvidia-smi报出题目中的错误。一般这种错误都是在刚安装nvidia驱动后第一次启动可能出现,见我这篇文章。不过这次是突然出现的,不是安装驱动后出现的,所以不是安装nvidia驱......
  • C# 解决 WPF 导入项目报错 error : 找不到指定的 SDK
    参考MSB4236:找不到指定的SDK“name”2019:无法打开项目文件。无法找到.NETSDK环境软件/系统版本说明WindowsWindows10专业版22H219045.4046MicrosoftVisualStudioMicrosoftVisualStudioCommunity2022(64位)-17.6.5Microsoft.NetSDK8......
  • 用wsl和windows vscode 进行开发
    https://code.visualstudio.com/docs/remote/wsl用wsl和windowsvscode进行开发上面是官方教程准备:安装wsl安装vscode插件:RemoteDevelopment使用(多种方式):在wslubuntu中输入code.在code中打开F1-WSL:xxxdistro...在windows用命令行启动code,附带下......
  • 请求接口时报错nginx 413 Request Entity Too Large
    1.在rancher容器中执行命令行$cd/etc/nginx$catnginx.conf2.vi或vim修改配置文件bash:vim:commandnotfound更新软件包列表$sudoapt-getupdate更新软件包$sudoapt-getupgrade安装vim$sudoapt-getinstallvim3.vim修改conf配置文件http新增client_m......