用vscode运行cnpm install
时报错如下:

解决办法:
1、方法一:
切换运行模式为Git Bash,不用powershell运行。

2、方法二:
如果想要保留powershell运行,则按照如下步骤进行:
1、打开powershell(一定要用管理员身份运行,)

2、在命令行输入:set-ExecutionPolicy RemoteSigned
3、输入y,回车

4、再次输入cnpm install就可以运行了
用vscode运行cnpm install
时报错如下:
解决办法:
切换运行模式为Git Bash,不用powershell运行。
如果想要保留powershell运行,则按照如下步骤进行:
1、打开powershell(一定要用管理员身份运行,)
2、在命令行输入:set-ExecutionPolicy RemoteSigned
3、输入y,回车
4、再次输入cnpm install就可以运行了
本文标题:【报错】cnpm install 无法加载文件 C:\Users
本文链接:https://www.haomeiwen.com/subject/epvrsltx.html
网友评论