Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Error Code: ERROR_USER_UNAUTHORIZED #4

@theYasirRehman

Description

@theYasirRehman

I had configured NPM-MSDeploy as following:

Installation:
npm install msdeploy --save

Added script in the package.json as:
"deploy": "msdeploy --verb sync --allowUntrusted true --source package=dist.zip --dest auto,ComputerName=https://hostname:8172/msdeploy.axd?site=site-name,UserName=domain\username,Password=password,AuthType=Basic,includeAcls=False"

and tried it by running "npm run deploy".

I had also tried it with same script and added config in package.json as:
"config": {
"ComputerName": "https://hostname:8172/msdeploy.axd?site=site-name",
"UserName": "domain\username",
"Password": "password",
"dest": "auto"

It gives error "ERROR_USER_UNAUTHORIZED" everytime.

FYI, the target server is on different domain and network.

Here is the screenshot of the error:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions