• 1399/01/23

مشکل در ایجاد پروژه :

سلام

زمان ایجاد پروژه به چنین خطاییبر میخورم

 

PS C:\Users\Flower\Documents\vue_prj\test1> vue init webpack_simple
vue : File C:\Users\Flower\AppData\Roaming\npm\vue.ps1 cannot be loaded. The file C:\Users\Flower\AppData\Roaming\npm\vue.ps1 
is not digitally signed. You cannot run this script on the current system. For more information about running scripts and 
setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ vue init webpack_simple
+ ~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\Flower\Documents\vue_prj\test1>

  • 1399/01/23
  • ساعت 17:31

سلام دوست من

لطفا command prompt رو به صورت run as admin اجرا کرده و دستور زیر رو وارد کنید

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy UnRestricted

سپس enter بزنین و دوباره سعی کنین پروژتون رو ایجاد کنین


  • 1399/01/23
  • ساعت 22:08

اینکار رو کردم  چنین پیامی میده

'Set-ExecutionPolicy' is not recognized as an internal or external command,
operable program or batch file.


logo-enamadlogo-samandehi