Custom API issue in 9.3 Angular Web Portal

Hi everyone,

I created a plugin to add custom APIs to my 9.3 installation and then I loaded the plugin via the Software Loader.

Next I need to import the plugin to my Angular Web Portal project. This is official guide about this topic: Identity Manager 9.3 - API Development Guide

When I run the command " imxclient compile-api /copyapi imx-api-ccc.tgz /packagename imx-api-ccc " I get the following error:

"Warn: Command compile-api failed with exception.System.IO.FileNotFoundException: npm.cmd was not found on the path, and nodejs.zip also was not found.
File name: 'C:\Program Files\One Identity\One Identity Manager\nodejs.zip'
at VI.ApiDesigner.NpmRunner.GetEffectiveNpmPath()
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy`1.CreateValue()
at VI.ApiDesigner.NpmRunner.Run(String args, String baseDirectory, Boolean redirectOutput)
at VI.ApiDesigner.CodeGen.TypedClientGen.GenerateAndCompileTsClient(CancellationToken ct)
at VI.ApiDesigner.CodeGen.ResourceBuilder.CompileTsClient(String baseDir, String version, CancellationToken ct)"

Some notes:

- Node is correctly installed (node -v --> v22.19.0 )

- Npm is correctly installed (npm -v --> 10.9.3 )

- Node path is correctly added to my PATH variable

- Cmd is running as Administrator

- I tried to copy manually node files into One Identity directory, but I have the same error

I can't create my imx-api-ccc Typescrypt plugin to import my custom Apis in Angular Web Portal project.

Any suggestion? Thanks in advance

Parents
  • Hi,

    I had the same problem. The nodejs.zip file is no longer included in the tools for version 9.3 (I'm not sure why, but it seems that the ImxClient always expects this zip file to install or start it from if it's available). As a workaround, I took the nodejs.zip file from version 9.2 and put it into my OIM working directory. After that, it worked without any problems, and I got a functioning API client.

Reply
  • Hi,

    I had the same problem. The nodejs.zip file is no longer included in the tools for version 9.3 (I'm not sure why, but it seems that the ImxClient always expects this zip file to install or start it from if it's available). As a workaround, I took the nodejs.zip file from version 9.2 and put it into my OIM working directory. After that, it worked without any problems, and I got a functioning API client.

Children
No Data