How to deploy an API with NodeJs using Maven

Not applicable

Hi,

I have a requirement to use NodeJs to an existing Api proxy....I tried to install the dependent node modules in the api management and I get error

npm ERR! node v6.11.3

npm ERR! npm v3.10.10

npm ERR! code ELIFECYCLE

I'm using maven to build my api...

Need your guidance

Thanks

0 2 373
2 REPLIES 2

@Deepa are you using the maven plugin from github ? Please post the url. check your config.json to ensure you have your dependencies covered.

You can prepackage your node modules and place it in your bundle.

apiproxy/resources/node/node_modules.zip

The maven plugin will deploy the bundle and the node_modules.zip in one go.

The maven deploy plugin does not support the "nom install" management API call at the moment.