npm常见错误的处理

npm常见错误的处理

一、清除缓存

npm cache clean --force

二、yarn : 无法加载文件

C:\Users\MI\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的
about_Execution_Policies。
在这里插入图片描述
1、搜索powershell,右键以管理员身份运行
在这里插入图片描述

2.在命令行中执行以下脚本

set-ExecutionPolicy RemoteSigned

猜你喜欢

转载自blog.csdn.net/qq_43554997/article/details/106645671