我使用节点版本12.20.2和npm版本6.14.11,并以cmd作为管理员安装了松露,已经安装了松露框架5.5.12版本,但是当我在vs代码中运行任何命令时,会弹出一个错误
PS E:\Testing (roughf work)> truffle version
truffle : File C:\Program Files\nodejs\truffle.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ truffle version
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS E:\Testing (roughf work)> truffle init
truffle : File C:\Program Files\nodejs\truffle.ps1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ truffle init
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess我不知道该怎么办,请尽快帮我
发布于 2022-10-29 12:31:08
npx松露版本
npx松露
永久解决方案的
以下任何一种解决办法都将解决这一问题:
我建议的解决方案:使用CMD
https://ethereum.stackexchange.com/questions/127218
复制相似问题