[英]truffle init truffle : File C:\Users\PC-Name\AppData\Roaming\npm\truffle.ps1 cannot be loaded because running scripts is disabled on this system
嘗試使用 --> npx truffle init
,用於啟動項目npx truffle compile
,用於編譯,它適用於我的情況
1.以管理員身份運行PowerShell
2. 之后運行以下命令: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted 3. 然后運行 truffle 命令: npm install -g truffle
現在一切都會完美運行,包括(松露初始化)
如果您仍然遇到錯誤,請告訴我。 我有不同的解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.