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