当前位置:网站首页>yarn : 无法加载文件 yarn.ps1,因为在此系统上禁止运行脚本。
yarn : 无法加载文件 yarn.ps1,因为在此系统上禁止运行脚本。
2022-07-25 09:16:00 【高级摸鱼工程师】
yarn : 无法加载文件 D:\devtool\node\node_global\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execut
ion_Policies。
npm install --global yarn
安装yarn的时候抱这个错。
同时还有这么一个提示:
有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execut
ion_Policies。
看了下,大概就是powershell安全策略的问题。
解决
按照上面文章内的指导,修改安全策略:
- 打开powershell,以管理员身份打开
- set-ExecutionPolicy RemoteSigned,选择Y
- get-ExecutionPolicy 查看是否为RemoteSigned
验证
npm install --global yarn
运行成功~
边栏推荐
- JS touch screen game source code ice and snow journey
- Software examination system architecture designer concise tutorial | software life cycle
- This ten-year content industry infrastructure company is actually an invisible Web3 pioneer
- 实现简单的RESTful API服务器
- Canvas text JS special effect composed of many circles
- 整理 华为AP-3010DN_V2配置创建wifi
- Silicon Valley class lesson 11 - official account news and wechat authorization
- Network principle (2) -- network development
- Redis-哨兵,主从部署详细篇
- Comments on specific applications of camera
猜你喜欢

Arcgis10.2 installation tutorial

Guangzhou has carried out in-depth "100 day action" to check the safety of self built commercial houses, and more than 2 million houses have been checked in two months

activemq--可持久化机制之JDBC的journal

Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL

Composition of the interview must ask items

How to write the code of wechat applet implementation tab

(self drawn ugly picture) simple understanding tcp/ip three handshakes and four waves

Yolov5 environment configuration

360度拖拽全景图插件tpanorama.js

Silicon Valley classroom lesson 15 - Tencent cloud deployment
随机推荐
sticksy.js页面滚动div固定位置插件
Additional: SQL statement area / county in the middle half (data table)
2022-7-14 JMeter simulates the login of different users for pressure test
Robot jumping problem
Shell script
js弹出式城市筛选组件匹配手机移动端
activemq--异步投递
nacos2.1.0集群搭建
Oracle10g单实例数据库升级到哪个版本好,求建议
Django4.0 + web + MySQL 5.7 realize simple login operation
Six storage types in C language: Auto register static extern const volatile
c语言中的六个存储类型:auto register static extern const volatile
uniapp中scroll-view的坑
[SCADA case] myscada helps VIB company realize the modernization and upgrading of production line
Cool canvas animation shock wave JS special effect
How to write the code of wechat applet implementation tab
[BUUCTF-n1book][第二章 web进阶]SSRF Training
NFT guide for musicians
activemq--死信队列
What is steel grating?