Live-server access denied even after editing port

kobosh 176 Reputation points
2022-07-21T19:51:18.063+00:00

I followed [this tutorial][1]

[1]: https://medium.com/angular-in-depth/setting-up-angular-from-scratch-1f518c65d8ab. It uses live-server for launching angular app. I uploaded app in VCode and tried to run npm start it gave "Error: listen EACCES: permission denied 0.0.0.0:8080". Then i followed this blog post to fix by adding live-server extension to vcode and edit live server setting. but still getting the error.
see settings file:

{

"files.autoSave": "afterDelay",  
"workbench.colorTheme": "Visual Studio Dark",  
"editor.suggestSelection": "first",  
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",  
"Zowe-DS-Persistent": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [  
        "[LEARNCOBOL]: Z87611.CBL(PAYROL0X)",  
        "[LEARNCOBOL]: Z87611.JCL(PAYROL0X)",  
        "[LEARNCOBOL]: Z87611.JCL(PAYROL00)",  
        "[LEARNCOBOL]: Z87611.JCL(IGYCALL)",  
        "[LEARNCOBOL]: Z87611.CBL(PAYROL00)",  
        "[LEARNCOBOL]: Z87611.JCL(ADDAMT)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0006J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0005J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0004J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0012J)"  
    ],  
    "searchHistory": [  
        "Z87611"  
    ]  
},  
"Zowe-USS-Persistent": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [],  
    "searchHistory": []  
},  
"Zowe-Jobs-Persistent": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [],  
    "searchHistory": []  
},  
"files.associations": {  
    "*.COBOL*": "cobol",  
    "*.COB*": "cobol",  
    "*.COBCOPY*": "cobol",  
    "*.COPYBOOK*": "cobol",  
    "*.COPY*": "cobol",  
    "*.PL1*": "pl1",  
    "*.PLI*": "pl1",  
    "*.INC*": "pl1",  
    "*.INCLUDE*": "pl1",  
    "*.JCL*": "jcl",  
    "*.ASM*": "hlasm",  
    "*.ASSEMBLE*": "hlasm",  
    "*.HLASM*": "hlasm",  
    "*.HLA*": "hlasm",  
    "*.EXEC*": "rexx",  
    "*.REXX*": "rexx",  
    "*.REXXINC*": "rexx",  
    "*.copyasm": "hlasm",  
    "*.macasm": "hlasm",  
    "*.bms": "hlasm",  
    "*.rex": "rexx",  
    "*.rexx": "rexx"  
},  
"json.schemas": [  
    {  
        "fileMatch": [  
            "/zapp.json"  
        ],  
        "url": "file:///c%3A/Users/kokob/.vscode/extensions/ibm.zopeneditor-2.1.0/resources/zapp-schema-0.0.3.json"  
    },  
    {  
        "fileMatch": [  
            "/zcodeformat.json"  
        ],  
        "url": "file:///c%3A/Users/kokob/.vscode/extensions/ibm.zopeneditor-2.1.0/resources/zcodeformat-schema-0.0.1.json"  
    }  
],  
"workbench.editorAssociations": {  
    "*.ipynb": "jupyter-notebook"  
},  
"jupyter.interactiveWindowMode": "perFile",  
"notebook.cellToolbarLocation": {  
    "default": "right",  
    "jupyter-notebook": "left"  
},  
"editor.fontSize": 18,  
"open-in-browser.default": "MicrosoftEdge",  
"files.exclude": {  
    "**/.classpath": true,  
    "**/.project": true,  
    "**/.settings": true,  
    "**/.factorypath": true  
},  
"diffEditor.ignoreTrimWhitespace": false,  
"zowe.ds.history": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [  
        "[LEARNCOBOL]: Z87611.CBL(PAYROL0X)",  
        "[LEARNCOBOL]: Z87611.JCL(PAYROL0X)",  
        "[LEARNCOBOL]: Z87611.JCL(PAYROL00)",  
        "[LEARNCOBOL]: Z87611.JCL(IGYCALL)",  
        "[LEARNCOBOL]: Z87611.CBL(PAYROL00)",  
        "[LEARNCOBOL]: Z87611.JCL(ADDAMT)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0006J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0005J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0004J)",  
        "[LEARNCOBOL]: Z87611.JCL(CBL0012J)"  
    ],  
    "searchHistory": [  
        "Z87611"  
    ]  
},  
"zowe.uss.history": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [],  
    "searchHistory": []  
},  
"zowe.jobs.history": {  
    "persistence": true,  
    "favorites": [],  
    "history": [],  
    "sessions": [  
        "learnCobol"  
    ],  
    "fileHistory": [],  
    "searchHistory": []  
},  
"zowe.settings.version": 2,  
"liveServer.settings.AdvanceCustomBrowserCmdLine": "",  
"liveServer.settings.port": 5500  

}

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-07-25T09:09:32.73+00:00

    Hi @kobosh ,

    You are using Visual Studio Code, which is different from Visual Studio. The tag “vs-general” is related to Visual Studio, for more questions about Visual Studio Code, we suggest you post it to the Stack Overview tagged visual-studio-code forum or GitHub repository where you would get professional support for this product. Thanks for your understanding.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.