ApexSQL Build Pipeline

Hi

When running the build task in my Azure Devops Pipeline, Im getting the error "Cannot find module 'azure-pipelines-task-lib'"

Could you help?

Thanks

Dee

Parents
  • +1 I have the same issue. We are running Azure DevOps Server (on premise). The error message seems to indicate a missing Node module:

    ##[section]Starting: ApexSQL DevOps toolkit - Build
    ==============================================================================
    Task : ApexSQL DevOps toolkit - Build
    Description : Build database from source control repository.
    Version : 1.0.2
    Author : ApexSQL LLC
    Help :
    ==============================================================================
    module.js:471
    throw err;
    ^

    Error: Cannot find module 'azure-pipelines-task-lib'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js:19:52)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    ##[error]Exit code 1 returned from process: file name 'D:\BuildAgent1\externals\node\bin\node.exe', arguments '"D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js"'.
    ##[debug]Microsoft.VisualStudio.Services.Agent.ProcessExitCodeException: Exit code 1 returned from process: file name 'D:\BuildAgent1\externals\node\bin\node.exe', arguments '"D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js"'.
    at Microsoft.VisualStudio.Services.Agent.ProcessInvoker.<ExecuteAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.<RunAsync>d__6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.<RunAsync>d__24.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.<RunStepAsync>d__1.MoveNext()
    ##[section]Finishing: ApexSQL DevOps toolkit - Build
Reply
  • +1 I have the same issue. We are running Azure DevOps Server (on premise). The error message seems to indicate a missing Node module:

    ##[section]Starting: ApexSQL DevOps toolkit - Build
    ==============================================================================
    Task : ApexSQL DevOps toolkit - Build
    Description : Build database from source control repository.
    Version : 1.0.2
    Author : ApexSQL LLC
    Help :
    ==============================================================================
    module.js:471
    throw err;
    ^

    Error: Cannot find module 'azure-pipelines-task-lib'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js:19:52)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    ##[error]Exit code 1 returned from process: file name 'D:\BuildAgent1\externals\node\bin\node.exe', arguments '"D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js"'.
    ##[debug]Microsoft.VisualStudio.Services.Agent.ProcessExitCodeException: Exit code 1 returned from process: file name 'D:\BuildAgent1\externals\node\bin\node.exe', arguments '"D:\BuildAgent1\_work\_tasks\ApexSqlDotBuild_12fa4359-9c97-46ea-bc65-af045384dade\1.0.2\bootstrap.js"'.
    at Microsoft.VisualStudio.Services.Agent.ProcessInvoker.<ExecuteAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.<RunAsync>d__6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.<RunAsync>d__24.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.<RunStepAsync>d__1.MoveNext()
    ##[section]Finishing: ApexSQL DevOps toolkit - Build
Children
No Data