none
อยากสอบถามครับ Powershell:CommandNotFoundException Error RRS feed

  • คำถาม

  • อยากสอบถามครับ อาการมันขึ้นเเบบนี้น่ะครับ กดอะไรก็ขึ้นเเบบนี้น่ะครับ พอมีทางเเก้ไขมั้ยครับ เเต่คำสั่งพวก cd ไรพวกนี้ใช้ได้ปกติครับ ช่วยทีครับขอบคุณครับ

    Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1
    + Install-WindowsFeature Hyper-V-PowerShell
    + ~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Install-WindowsFeature:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    bower : The term 'bower' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + bower install bootstrap#v4.0.0-alpha.6
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (bower:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\Users\AionQRy> npm install -g bower
    npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
    spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + npm install -g bower
    + ~~~
        + CategoryInfo          : ObjectNotFound: (npm:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException



    • แก้ไขโดย Akegapol 24 พฤษภาคม 2560 19:31
    24 พฤษภาคม 2560 19:25

ตอบทั้งหมด

  • สวัสดีค่ะ
    สาเหตุของปัญหานี้คือการเรียกใช้คำสั่งผิดพลาดนะคะ  ในตอนแรก เรียกใช้ Powershellในฐานะผู้ดูแลระบบ  ถ้าวัตถุประสงค์หลักเพื่อติดตั้ง hyper-v ควรจะเป็น
    enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All   
    คุณจะต้องติดตั้งโปรแกรมอะไร กรุณาให้รายละเอียดเพิ่มเติมนะคะ
    ขอบคุณค่ะ

    MSDN Community Support Please remember to click Mark as Answer ,the responses that resolved your issue, and to click Unmark as Answer if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • เสนอเป็นคำตอบโดย Julia Tuo 4 มกราคม 2562 2:50
    25 พฤษภาคม 2560 6:09