当前位置:网站首页>Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system
Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system
2022-07-06 17:31:00 【JackieDYH】
error message
yarn : Unable to load file D:\ProgramFiles\nodejs\yarn.ps1, Because scripts are not allowed to run on this system . For more information , see also https:/go.microsoft.com/fwlink/?LinkID=135170
Medium about_Execution_Policies.
The position of That's ok :1 character : 1
+ yarn run serve
+ ~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Terminal process “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command yarn run serve” Terminated , Exit code : 1.
The main reason is powershell The execution policy of prevented this operation
solve
stay powershell Command line
windows Run under *.ps1 Script (powershell Script for ) When , You need to set execution permissions
Carry out orders : set-ExecutionPolicy RemoteSigned # Remote signature
#Set-ExecutionPolicy Restricted # No execution is allowed ( The default option )
#Set-ExecutionPolicy Unrestricted # unlimited
# Parameters -Scope CurrentUser Valid only for current user
-----------------------------------------------------------------
Get-ExecutionPolicy
Get-ExecutionPolicy -Scope CurrentUser
边栏推荐
- JVM garbage collection overview
- Prototype chain inheritance
- [VNCTF 2022]ezmath wp
- 案例:检查空字段【注解+反射+自定义异常】
- 【逆向】脱壳后修复IAT并关闭ASLR
- Models used in data warehouse modeling and layered introduction
- [reverse] repair IAT and close ASLR after shelling
- 06 products and promotion developed by individuals - code statistical tools
- Idea breakpoint debugging skills, multiple dynamic diagram package teaching package meeting.
- 1. JVM入门介绍
猜你喜欢
Flink parsing (III): memory management
07 personal R & D products and promotion - human resources information management system
[reverse primary] Unique
Instructions for Redux
02 personal developed products and promotion - SMS platform
基于LNMP部署flask项目
Akamai 反混淆篇
04个人研发的产品及推广-数据推送工具
Flink 解析(二):反压机制解析
集成开发管理平台
随机推荐
Flink 解析(六):Savepoints
JVM运行时数据区之程序计数器
04个人研发的产品及推广-数据推送工具
CTF reverse entry question - dice
Models used in data warehouse modeling and layered introduction
Flink parsing (V): state and state backend
MySQL Advanced (index, view, stored procedures, functions, Change password)
Flink 解析(四):恢复机制
Wu Jun's trilogy experience (VII) the essence of Commerce
学习投资大师的智慧
数据仓库建模使用的模型以及分层介绍
基于Infragistics.Document.Excel导出表格的类
Only learning C can live up to expectations top2 P1 variable
Final review of information and network security (full version)
The solution to the left-right sliding conflict caused by nesting Baidu MapView in the fragment of viewpager
吴军三部曲见识(四) 大家智慧
Akamai 反混淆篇
Case: check the empty field [annotation + reflection + custom exception]
Instructions for Redux
C version selenium operation chrome full screen mode display (F11)